[Igarden-commit] Garden/source/PlanTool TextBoxTool.cpp, 1.8.2.5, 1.8.2.6
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2008-05-09 01:08:25
|
Update of /cvsroot/igarden/Garden/source/PlanTool In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv23644/source/PlanTool Modified Files: Tag: Release_branch_v1 TextBoxTool.cpp Log Message: Textbox and titlebox fixes Index: TextBoxTool.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/PlanTool/TextBoxTool.cpp,v retrieving revision 1.8.2.5 retrieving revision 1.8.2.6 diff -C2 -d -r1.8.2.5 -r1.8.2.6 *** TextBoxTool.cpp 19 Mar 2008 01:37:41 -0000 1.8.2.5 --- TextBoxTool.cpp 9 May 2008 01:08:27 -0000 1.8.2.6 *************** *** 94,98 **** UserTextBox *newElem = NULL; PlanAddAction *action; - planLength_t minSize; PRECONDITION(view != NULL); --- 94,97 ---- *************** *** 129,137 **** newElem = new UserTextBox(rect); ! minSize = newElem->MinimumSize(wview, kBorderRounded); ! if(rect.xSize > minSize && rect.ySize > minSize) ! newElem->SetBorder(kBorderRounded); ! else ! newElem->SetBorder(kBorderPlain); AddElementToAction(newElem); FinishAndPostAction(wview); --- 128,132 ---- newElem = new UserTextBox(rect); ! newElem->SetBorder(kBorderRounded); AddElementToAction(newElem); FinishAndPostAction(wview); |