[TD]corrupt dim reference detect and correct

This commit is contained in:
wandererfan
2023-03-13 19:01:31 -04:00
committed by WandererFan
parent 45743d4fbd
commit 8a11528a7e
16 changed files with 859 additions and 64 deletions

View File

@@ -1044,11 +1044,9 @@ void CmdTechDrawBalloon::activated(int iMsg)
{
Q_UNUSED(iMsg);
bool result = _checkSelectionBalloon(this, 1);
if (!result)
if (!result) {
return;
// result = _checkDrawViewPartBalloon(this);
// if (!result)
// return;
}
std::vector<Gui::SelectionObject> selection = getSelection().getSelectionEx();
@@ -1085,7 +1083,8 @@ bool CmdTechDrawBalloon::isActive()
{
bool havePage = DrawGuiUtil::needPage(this);
bool haveView = DrawGuiUtil::needView(this, false);
return (havePage && haveView);
bool taskInProgress = Gui::Control().activeDialog();
return (havePage && haveView && !taskInProgress);
}
//===========================================================================