diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/Deck.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx index 7a5b89139a08..35203a18c4cd 100644 --- a/sfx2/source/sidebar/Deck.cxx +++ b/sfx2/source/sidebar/Deck.cxx @@ -136,10 +136,12 @@ void Deck::Resize() */ void Deck::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter) { - rJsonWriter.put("id", get_id()); // TODO could be missing - sort out + rJsonWriter.put("id", get_id() != "" ? get_id() : msId); rJsonWriter.put("type", "deck"); rJsonWriter.put("text", GetText()); rJsonWriter.put("enabled", IsEnabled()); + if (!IsVisible()) + rJsonWriter.put("visible", false); auto childrenNode = rJsonWriter.startArray("children"); for (auto &it : maPanels) |