summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/tabctrl.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index 571926faaca2..6ac2762f3022 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -2195,9 +2195,8 @@ void TabControl::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter)
auto childNode = rJsonWriter.startStruct();
pChild->DumpAsPropertyTree(rJsonWriter);
- if (pChild->IsVisible()) {
+ if (!pChild->IsVisible())
rJsonWriter.put("hidden", "true");
- }
}
}
}