From ba6092502cef31ac5d5f1ce5d23ffaa03378478d Mon Sep 17 00:00:00 2001 From: wandererfan Date: Sat, 9 Mar 2019 17:41:43 -0500 Subject: [PATCH] Fix #3891 S/S Contents not displayed at load - DrawViewSpreadsheet is empty after document load. Requires recompute to display s/s contents. --- src/Mod/TechDraw/App/DrawViewSpreadsheet.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/TechDraw/App/DrawViewSpreadsheet.cpp b/src/Mod/TechDraw/App/DrawViewSpreadsheet.cpp index 6aeec0ba5b..e4bdab3e1e 100644 --- a/src/Mod/TechDraw/App/DrawViewSpreadsheet.cpp +++ b/src/Mod/TechDraw/App/DrawViewSpreadsheet.cpp @@ -63,7 +63,7 @@ DrawViewSpreadsheet::DrawViewSpreadsheet(void) std::string fontName = hGrp->GetASCII("LabelFont", "osifont"); ADD_PROPERTY_TYPE(Source ,(0),vgroup,App::Prop_None,"Spreadsheet to view"); - Source.setScope(App::LinkScope::Global); + Source.setScope(App::LinkScope::Global); ADD_PROPERTY_TYPE(CellStart ,("A1"),vgroup,App::Prop_None,"The top left cell of the range to display"); ADD_PROPERTY_TYPE(CellEnd ,("B2"),vgroup,App::Prop_None,"The bottom right cell of the range to display"); ADD_PROPERTY_TYPE(Font ,((fontName.c_str())),vgroup,App::Prop_None,"The name of the font to use"); @@ -158,6 +158,8 @@ std::string DrawViewSpreadsheet::getSheetImage(void) std::stringstream result; App::DocumentObject* link = Source.getValue(); + link->recomputeFeature(); //make sure s/s is up to date + std::string scellstart = CellStart.getValue(); std::string scellend = CellEnd.getValue();