[TD]fix lock in Rich Text Anno
This commit is contained in:
@@ -88,8 +88,17 @@ void QGIRichAnno::updateView(bool update)
|
||||
}
|
||||
|
||||
auto vp = static_cast<ViewProviderRichAnno*>(getViewProvider(getViewObject()));
|
||||
if (!vp)
|
||||
if (!vp) {
|
||||
return;
|
||||
}
|
||||
|
||||
//allow/prevent dragging
|
||||
if (getViewObject()->isLocked()) {
|
||||
setFlag(QGraphicsItem::ItemIsMovable, false);
|
||||
} else {
|
||||
setFlag(QGraphicsItem::ItemIsMovable, true);
|
||||
}
|
||||
|
||||
if (annoFeat->X.isTouched() ||
|
||||
annoFeat->Y.isTouched()) {
|
||||
float x = Rez::guiX(annoFeat->X.getValue());
|
||||
|
||||
Reference in New Issue
Block a user