From 46c164109ff6a0da4b5f1f353156a1c573c0e386 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sat, 31 Mar 2007 23:29:14 +0000 Subject: [PATCH] Real width(width) doesn't work. The new variable is in scope before the old one can be used. Use `Real tmp_width(width)' instead. git-svn-id: http://svn.voria.com/code@402 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/state_draw.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/state_draw.cpp b/synfig-studio/trunk/src/gtkmm/state_draw.cpp index 799eb75..dbfe6ca 100644 --- a/synfig-studio/trunk/src/gtkmm/state_draw.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_draw.cpp @@ -661,9 +661,9 @@ StateDraw_Context::process_stroke(StrokeData stroke_data, WidthData width_data, // Add the widths of the two points { - Real width(bline.front().get_width()+width); - width=width<=1?width:1; - bline.front().set_width(width); + Real tmp_width(bline.front().get_width()+width); + tmp_width=tmp_width<=1?tmp_width:1; + bline.front().set_width(tmp_width); } } -- 2.7.4