[Igarden-commit] Garden/source/LayoutDB GardenPlot.cpp, 1.50.2.13, 1.50.2.14
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2008-05-11 02:58:31
|
Update of /cvsroot/igarden/Garden/source/LayoutDB In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv30111/source/LayoutDB Modified Files: Tag: Release_branch_v1 GardenPlot.cpp Log Message: Handle creating overview plots without an aerial photo Index: GardenPlot.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/LayoutDB/GardenPlot.cpp,v retrieving revision 1.50.2.13 retrieving revision 1.50.2.14 diff -C2 -d -r1.50.2.13 -r1.50.2.14 *** GardenPlot.cpp 26 Mar 2008 22:27:14 -0000 1.50.2.13 --- GardenPlot.cpp 11 May 2008 02:58:26 -0000 1.50.2.14 *************** *** 243,249 **** { if(isOverview) ! SetPosition((plot->_cropPixelRect.left - _cropPixelRect.left) * _aerialPhotoScale.scale, ! (_plotHeight - ((plot->_cropPixelRect.top - _cropPixelRect.top) * _aerialPhotoScale.scale)) - plot->_plotHeight, ! 0.0); } } --- 243,258 ---- { if(isOverview) ! { ! if(IsAerialPicturePresent()) ! { ! SetPosition((plot->_cropPixelRect.left - _cropPixelRect.left) * _aerialPhotoScale.scale, ! (_plotHeight - ((plot->_cropPixelRect.top - _cropPixelRect.top) * _aerialPhotoScale.scale)) - plot->_plotHeight, ! 0.0); ! } ! else ! { ! SetPosition(0, (_plotHeight - plot->_plotHeight), 0.0); ! } ! } } } |