Explorar o código

BUG: Initializing class constants of type double is illegal C++.

- Fixes build failure in Visual Studio.
Danielle Pace %!s(int64=14) %!d(string=hai) anos
pai
achega
63459b7703
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      Libs/Widgets/ctkCrosshairLabel.cpp

+ 3 - 1
Libs/Widgets/ctkCrosshairLabel.cpp

@@ -55,9 +55,11 @@ public:
   ctkCrosshairLabel::CrosshairTypes CrosshairType;
   int       BullsEyeWidth;
 
-  static const double BULLS_EYE_BLANK_FRACTION = 0.1;
+  static const double BULLS_EYE_BLANK_FRACTION;
 };
 
+const double ctkCrosshairLabelPrivate::BULLS_EYE_BLANK_FRACTION = 0.1;
+
 // --------------------------------------------------------------------------
 // ctkCrosshairLabelPrivate methods