[Igarden-commit] Garden/source/PlanTool PlanView.cpp, 1.47.2.15, 1.47.2.16
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2008-05-23 13:05:33
|
Update of /cvsroot/igarden/Garden/source/PlanTool In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv1195/source/PlanTool Modified Files: Tag: Release_branch_v1 PlanView.cpp Log Message: Fix a problem with default scale gettin out of bounds (thick lines on SVG drawing). Index: PlanView.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/PlanTool/PlanView.cpp,v retrieving revision 1.47.2.15 retrieving revision 1.47.2.16 diff -C2 -d -r1.47.2.15 -r1.47.2.16 *** PlanView.cpp 17 May 2008 21:53:03 -0000 1.47.2.15 --- PlanView.cpp 23 May 2008 13:05:34 -0000 1.47.2.16 *************** *** 1286,1290 **** if(newDefaultScale != _defaultScale) { ! if(newDefaultScale == 0) { measureUnits_t units = (measureUnits_t)_prefs->GetInt32Pref(kUnitsPref); --- 1286,1292 ---- if(newDefaultScale != _defaultScale) { ! if(newDefaultScale == 10 || newDefaultScale == 12) ! _defaultScale = newDefaultScale; ! else { measureUnits_t units = (measureUnits_t)_prefs->GetInt32Pref(kUnitsPref); *************** *** 1296,1301 **** _prefs->SetInt32Pref(kDefaultScalePref, _defaultScale); } - else - _defaultScale = newDefaultScale; RGGLView::SetDefaultScale(newDefaultScale); --- 1298,1301 ---- |