Salome HOME
using a better solution to do compare doubles for shape physical properties
[modules/shaper.git] / src / SketcherPrs / SketcherPrs_SymbolPrs.cpp
index efc2cc546679cd75a3c0fe28fc1c0e63bb260914..de2569009fbabd56088368c8b54beac231768830 100644 (file)
@@ -178,7 +178,7 @@ Handle(Image_AlienPixMap) SketcherPrs_SymbolPrs::icon()
   aFile += iconName();
   Handle(Image_AlienPixMap) aPixMap = new Image_AlienPixMap();
   if (aPixMap->Load(aFile.c_str())) {
-    int aRatio = SketcherPrs_Tools::pixelRatio();
+    const double aRatio = SketcherPrs_Tools::pixelRatio();
     if (aRatio > 1) {
       Handle(Image_AlienPixMap) aSizedMap = new Image_AlienPixMap();
       Standard_Size aWidth = aPixMap->Width() * aRatio;