#3706 Annotations. Simple drilling reach circle

This commit is contained in:
Bjørn Erik Jensen
2018-11-26 11:08:38 +01:00
parent 4dc5c66b03
commit 6286a8729b
9 changed files with 103 additions and 132 deletions

View File

@@ -109,10 +109,10 @@ void RivAnnotationsPartMgr::createAnnotationPartManagers()
auto reachCircleAnnotations = proj->reachCircleAnnotations();
auto polylineAnnotations = proj->polylineAnnotations();
clearGeometryCache();
if (m_textAnnotationPartMgrs.size() != textAnnotations.size())
{
clearGeometryCache();
for (auto annotation : textAnnotations)
{
auto* apm = new RivTextAnnotationPartMgr(annotation);
@@ -122,8 +122,6 @@ void RivAnnotationsPartMgr::createAnnotationPartManagers()
}
if (m_reachCircleAnnotationPartMgrs.size() != reachCircleAnnotations.size())
{
clearGeometryCache();
for (auto annotation : reachCircleAnnotations)
{
auto* apm = new RivReachCircleAnnotationPartMgr(annotation);
@@ -133,8 +131,6 @@ void RivAnnotationsPartMgr::createAnnotationPartManagers()
}
if (m_polylineAnnotationPartMgrs.size() != polylineAnnotations.size())
{
clearGeometryCache();
for (auto annotation : polylineAnnotations)
{
auto* apm = new RivPolylineAnnotationPartMgr(annotation);