From a1ce4740c2223a9c417f77b12cfd89af6f38c063 Mon Sep 17 00:00:00 2001 From: twanvl Date: Tue, 7 Dec 2010 21:17:51 +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@1546 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/render/text/compound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/text/compound.cpp b/src/render/text/compound.cpp index 637b7925..51134e95 100644 --- a/src/render/text/compound.cpp +++ b/src/render/text/compound.cpp @@ -50,7 +50,7 @@ void ErrorTextElement::draw(RotatedDC& dc, double scale, const RealRect& rect, c } if (pos.x < rect.right()) { // final piece - dc.DrawLine(pos - dy, pos + dx / 2); + dc.DrawLine(pos - dy, pos + dx * 0.5); } } // Draw the contents