fix CIDs 154889, 151939, 151763, 154892, 154891, 151802, 151936, 151803, 153359

This commit is contained in:
wmayer
2016-12-18 14:12:13 +01:00
parent 0ada809ec5
commit 76c529d47d
7 changed files with 19 additions and 9 deletions

View File

@@ -755,7 +755,8 @@ void QGIViewPart::toggleCache(bool state)
QList<QGraphicsItem*> items = childItems();
for(QList<QGraphicsItem*>::iterator it = items.begin(); it != items.end(); it++) {
//(*it)->setCacheMode((state)? DeviceCoordinateCache : NoCache); //TODO: fiddle cache settings if req'd for performance
(*it)->setCacheMode((state)? NoCache : NoCache);
Q_UNUSED(state);
(*it)->setCacheMode(NoCache);
(*it)->update();
}
}