[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.2/kdeedu/marble/src/lib/geodata/data
From: Henry de Valence <hdevalence () gmail ! com>
Date: 2009-03-15 20:36:52
Message-ID: 1237149412.351022.19630.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 939843 by hdevalence:
Backport r939827
M +7 -4 GeoDataLineString.cpp
--- branches/KDE/4.2/kdeedu/marble/src/lib/geodata/data/GeoDataLineString.cpp #939842:939843
@@ -21,10 +21,13 @@
public:
GeoDataLineStringPrivate( TessellationFlags f )
: m_dirtyBox( true ),
- m_tessellationFlags( f )
+ m_tessellationFlags( f ),
+ m_latLonAltBox()
{
}
+ GeoDataLatLonAltBox m_latLonAltBox;
+
bool m_dirtyBox; // tells whether there have been changes to the
// GeoDataPoints since the LatLonAltBox has
// been calculated. Saves performance.
@@ -101,11 +104,11 @@
GeoDataLatLonAltBox GeoDataLineString::latLonAltBox() const
{
if (d->m_dirtyBox) {
- return GeoDataLatLonAltBox::fromLineString( *this );
+ d->m_latLonAltBox = GeoDataLatLonAltBox::fromLineString( *this );
+ d->m_dirtyBox = false;
}
- d->m_dirtyBox = false;
- return GeoDataLatLonAltBox();
+ return d->m_latLonAltBox;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic