Fix out of scope warnings

- Links within TD were not set to Global scope. This caused
  problems when a Page was in a container, but Views were not
  in the container.
This commit is contained in:
wandererfan
2019-01-21 13:06:02 -05:00
committed by Yorik van Havre
parent bdaa14c073
commit 242717f5e3
19 changed files with 11 additions and 12 deletions

View File

@@ -63,6 +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);
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");