[TD] Make DrawViewSpreadSheet respect DrawPage::redrawCommand() update mechanism.

This commit is contained in:
Aapo
2020-11-20 22:12:02 +02:00
parent 3dd77d7e89
commit f72bf9d325
2 changed files with 10 additions and 0 deletions

View File

@@ -372,6 +372,15 @@ void DrawPage::updateAllViews()
line->recomputeFeature();
}
}
//fourth, try to execute all spreadsheets.
for (it = featViews.begin(); it != featViews.end(); ++it) {
TechDraw::DrawViewSpreadsheet *sheet = dynamic_cast<TechDraw::DrawViewSpreadsheet *>(*it);
if (sheet != nullptr) {
sheet->recomputeFeature();
}
}
}
std::vector<App::DocumentObject*> DrawPage::getAllViews(void)

View File

@@ -31,6 +31,7 @@
#include <App/PropertyStandard.h>
#include <App/PropertyFile.h>
#include <Mod/TechDraw/App/DrawViewPart.h>
#include <Mod/TechDraw/App/DrawViewSpreadsheet.h>
namespace TechDraw
{