Commit 9ad30dc timlinux
committed Jan 14, 2007
1 parent 56f629f commit 9ad30dc Copy full SHA for 9ad30dc
File tree 1 file changed +15
-4
lines changed
1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -2605,15 +2605,25 @@ const QgsRasterBandStats QgsRasterLayer::getRasterBandStats(int theBandNoInt)
2605
2605
QgsDebugMsg (" myGdalBand->GetMinimum() failed" );
2606
2606
}
2607
2607
2608
+ // ifdefs below to remove compiler warning about unused vars
2609
+ #ifdef QGISDEBUG
2608
2610
double GDALmaximum = myGdalBand->GetMaximum ( &success );
2609
-
2611
+ #else
2612
+ myGdalBand->GetMaximum ( &success );
2613
+ #endif
2614
+
2610
2615
if ( ! success )
2611
2616
{
2612
2617
QgsDebugMsg (" myGdalBand->GetMaximum() failed" );
2613
2618
}
2614
2619
2620
+ // ifdefs below to remove compiler warning about unused vars
2621
+ #ifdef QGISDEBUG
2615
2622
double GDALnodata = myGdalBand->GetNoDataValue ( &success );
2616
-
2623
+ #else
2624
+ myGdalBand->GetNoDataValue ( &success );
2625
+ #endif
2626
+
2617
2627
if ( ! success )
2618
2628
{
2619
2629
QgsDebugMsg (" myGdalBand->GetNoDataValue() failed" );
@@ -3270,8 +3280,9 @@ QPixmap QgsRasterLayer::getDetailedLegendQPixmap(int theLabelCountInt=3)
3270
3280
int myFontHeight = (myQFontMetrics.height () );
3271
3281
const int myInterLabelSpacing = 5 ;
3272
3282
int myImageHeightInt = ((myFontHeight + (myInterLabelSpacing*2 )) * theLabelCountInt);
3273
- int myLongestLabelWidthInt = myQFontMetrics.width (this ->name ());
3274
- const int myHorizontalLabelSpacing = 5 ;
3283
+ // these next two vars are not used anywhere so commented out for now
3284
+ // int myLongestLabelWidthInt = myQFontMetrics.width(this->name());
3285
+ // const int myHorizontalLabelSpacing = 5;
3275
3286
const int myColourBarWidthInt = 10 ;
3276
3287
//
3277
3288
// Get the adjusted matrix stats
You can’t perform that action at this time.
0 commit comments