From 3ca87fce868e16c90fe4457ab5dfd42975322fb8 Mon Sep 17 00:00:00 2001 From: twanvl Date: Tue, 7 Dec 2010 21:11:03 +0000 Subject: [PATCH] compatibility with wxWdigets 2.9+: Vector2D use *0.5 instead of /2 to prevent ambiguous conversion errors git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1536 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/gui/symbol/basic_shape_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/symbol/basic_shape_editor.cpp b/src/gui/symbol/basic_shape_editor.cpp index 3691c13d..e1ff6c4e 100644 --- a/src/gui/symbol/basic_shape_editor.cpp +++ b/src/gui/symbol/basic_shape_editor.cpp @@ -180,7 +180,7 @@ void SymbolBasicShapeEditor::makeShape(Vector2D a, Vector2D b, bool constrained, if (centered) { makeCenteredShape(a, size, constrained); } else { - makeCenteredShape(a + size / 2, size / 2, constrained); + makeCenteredShape(a + size * 0.5, size * 0.5, constrained); } }