diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index e8ab874696c0..9d1fedeebdf5 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -1263,6 +1263,11 @@ VclPtr VclBuilder::makeObject(vcl::Window *pParent, const OString & VclPtr xButton = VclPtr::Create(pParent, nBits); xButton->SetImageAlign(ImageAlign::Left); //default to left xWindow = xButton; + + if (::extractStock(rMap)) + { + xWindow->SetText(getStockText(extractLabel(rMap))); + } } else if (name == "GtkCheckButton") { @@ -1280,7 +1285,13 @@ VclPtr VclBuilder::makeObject(vcl::Window *pParent, const OString & if (bIsTriState) xCheckBox->SetState(TRISTATE_INDET); xCheckBox->SetImageAlign(ImageAlign::Left); //default to left + xWindow = xCheckBox; + + if (::extractStock(rMap)) + { + xWindow->SetText(getStockText(extractLabel(rMap))); + } } else if (name == "GtkSpinButton") {