[mapguide-commits] r1240 - trunk/MgDev/Common/Stylization
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu Mar 15 12:35:45 EDT 2007
Author: traianstanev
Date: 2007-03-15 12:35:45 -0400 (Thu, 15 Mar 2007)
New Revision: 1240
Modified:
trunk/MgDev/Common/Stylization/LabelRendererLocal.cpp
Log:
more cleanup
Modified: trunk/MgDev/Common/Stylization/LabelRendererLocal.cpp
===================================================================
--- trunk/MgDev/Common/Stylization/LabelRendererLocal.cpp 2007-03-15 16:32:31 UTC (rev 1239)
+++ trunk/MgDev/Common/Stylization/LabelRendererLocal.cpp 2007-03-15 16:35:45 UTC (rev 1240)
@@ -336,21 +336,8 @@
}
// remember the feature bounds for the label group
- RS_Bounds bounds;
- path->ComputeBounds(bounds);
+ m_labelGroups.back().m_feature_bounds = path->bounds();
- // this is the SE case, and so the line buffer bounds are
- // in screen space - convert them back to mapping space
- double x0, y0, x1, y1;
- m_serenderer->ScreenToWorldPoint(bounds.minx, bounds.miny, x0, y0);
- m_serenderer->ScreenToWorldPoint(bounds.maxx, bounds.maxy, x1, y1);
- bounds.minx = rs_min(x0, x1);
- bounds.maxx = rs_max(x0, x1);
- bounds.miny = rs_min(y0, y1);
- bounds.maxy = rs_max(y0, y1);
-
- m_labelGroups.back().m_feature_bounds = bounds;
-
EndOverpostGroup();
}
More information about the mapguide-commits
mailing list