Fix regression in Caption handling

This commit is contained in:
wandererfan
2019-06-01 12:31:43 -04:00
committed by WandererFan
parent fd3d6d8091
commit 09679c18aa
3 changed files with 4 additions and 5 deletions

View File

@@ -191,6 +191,7 @@ short DrawView::mustExecute() const
if (!isRestoring()) {
result = (Scale.isTouched() ||
ScaleType.isTouched() ||
Caption.isTouched() ||
X.isTouched() ||
Y.isTouched() );
}

View File

@@ -455,7 +455,8 @@ void QGIView::drawBorder()
return;
}
//show neither
drawCaption(); //always draw caption
auto vp = static_cast<ViewProviderDrawingView*>(getViewProvider(getViewObject()));
if (!getFrameState() && !vp->KeepLabel.getValue()) {
m_label->hide();
@@ -463,10 +464,7 @@ void QGIView::drawBorder()
m_lock->hide();
return;
}
drawCaption();
//show both or show label
//double margin = 2.0;
m_label->hide();
m_border->hide();
m_lock->hide();

View File

@@ -154,7 +154,7 @@ private:
double m_zoomIncrement;
int m_reversePan;
int m_reverseScroll;
bool m_borderState;
/* bool m_borderState;*/
QLabel *balloonCursor;
QPoint balloonCursorPos;
void cancelBalloonPlacing(void);