summaryrefslogtreecommitdiff
path: root/vcl/source/control/button.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/button.cxx')
-rw-r--r--vcl/source/control/button.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 2eae233d5c7c..e6e731f79ee5 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -593,6 +593,9 @@ void Button::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter)
rJsonWriter.put("image", aBuffer.makeStringAndClear());
}
}
+
+ if (GetStyle() & WB_DEFBUTTON)
+ rJsonWriter.put("has_default", true);
}
IMPL_STATIC_LINK( Button, dispatchCommandHandler, Button*, pButton, void )