Fix RichAnno positioning for Scale != 1

This commit is contained in:
wandererfan
2019-05-13 12:27:55 -04:00
committed by wmayer
parent 66df908450
commit c7acc3420c

View File

@@ -152,8 +152,8 @@ void QGIRichAnno::textDragFinished(void)
return;
}
double x = Rez::appX(m_text->x()),
y = - Rez::appX(m_text->y());
double x = Rez::appX(m_text->x()) / getScale();
double y = - Rez::appX(m_text->y()) / getScale();
anno->X.setValue(x);
anno->Y.setValue(y);
}