Skip to content

Commit

Permalink
Fix build failure on old MSVC versions
Browse files Browse the repository at this point in the history
  • Loading branch information
J5lx committed Feb 25, 2024
1 parent 24df0e6 commit 96151d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions core_lib/src/tool/stroketool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ extern "C" {
}
#endif

const qreal StrokeTool::FEATHER_MIN = 1.;
const qreal StrokeTool::FEATHER_MAX = 99.;
const qreal StrokeTool::WIDTH_MIN = 1.;
const qreal StrokeTool::WIDTH_MAX = 200.;

// ---- shared static variables ---- ( only one instance for all the tools )
bool StrokeTool::msIsAdjusting = false;
bool StrokeTool::mQuickSizingEnabled = false;
Expand Down
8 changes: 4 additions & 4 deletions core_lib/src/tool/stroketool.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ class StrokeTool : public BaseTool

void updateCanvasCursor();

static Q_CONSTEXPR qreal FEATHER_MIN = 1.;
static Q_CONSTEXPR qreal FEATHER_MAX = 99.;
static Q_CONSTEXPR qreal WIDTH_MIN = 1.;
static Q_CONSTEXPR qreal WIDTH_MAX = 200.;
static const qreal FEATHER_MIN;
static const qreal FEATHER_MAX;
static const qreal WIDTH_MIN;
static const qreal WIDTH_MAX;

void loadSettings() override;

Expand Down

0 comments on commit 96151d7

Please sign in to comment.