[Kst] extragear/graphics/kst/src/libkstapp

Andrew Walker arwalker at sumusltd.com
Wed Jun 28 18:56:29 CEST 2006


SVN commit 555894 by arwalker:

remove compiler warnings

 M  +1 -1      kstviewlabel.cpp  
 M  +1 -1      kstviewlegend.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kstviewlabel.cpp #555893:555894
@@ -491,7 +491,7 @@
     x_s *= x_pix/748.0;
   }
 
-  _absFontSize = (x_s + y_s)/2;
+  _absFontSize = int((x_s + y_s)/2.0);
   if (_absFontSize < KstSettings::globalSettings()->plotFontMinSize) {
     _absFontSize = KstSettings::globalSettings()->plotFontMinSize;
   }
--- trunk/extragear/graphics/kst/src/libkstapp/kstviewlegend.cpp #555893:555894
@@ -453,7 +453,7 @@
     x_s *= x_pix/748.0;
   }
 
-  _absFontSize = (x_s + y_s)/2;
+  _absFontSize = int((x_s + y_s)/2.0);
   if (_absFontSize < KstSettings::globalSettings()->plotFontMinSize) {
     _absFontSize = KstSettings::globalSettings()->plotFontMinSize;
   }


More information about the Kst mailing list