summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-09-18 14:22:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:48 +0100
commitd23a61c697a81174a74fcbd78b43bd4482562af3 (patch)
treec0abb81ff77ef1fd87d95db08ec95b8aedb1c947 /vcl/source
parent0be1db23e008963e882e0548ca8357a10ccff380 (diff)
copy the button data
Change-Id: I3014106791b761e6aad5ea355402f9a2850f5bb5
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/control/button.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 6b45e6d02285..09b70558a881 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -105,6 +105,13 @@ Button::Button( WindowType nType ) :
mpButtonData = new ImplCommonButtonData;
}
+void Button::take_properties(Window &rOther)
+{
+ Control::take_properties(rOther);
+ Button &rOtherButton = static_cast<Button&>(rOther);
+ *mpButtonData = *rOtherButton.mpButtonData;
+}
+
// -----------------------------------------------------------------------
Button::~Button()