diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-07-12 10:13:22 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-07-12 09:27:38 +0000 |
commit | 8192da8e4de7a058ef95253f992f4143f83fa0f1 (patch) | |
tree | 693987d18b5761c0fffa18474d4c97fdb7d381cb /sfx2 | |
parent | b0d96a82a4f6a0832d03d185f4a53db669adcc99 (diff) |
tdf#100600 sfx2 classification: never replace the control with label
Thanks to Caolán McNamara for pointing out where is the condition of the
replacement in VCL.
Change-Id: I7e1ef4a016a37b25e084c4c6467a42ca557069a4
Reviewed-on: https://gerrit.libreoffice.org/27133
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/classificationcontroller.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/view/classificationcontroller.cxx b/sfx2/source/view/classificationcontroller.cxx index caa6ef410cf9..b905cd6499de 100644 --- a/sfx2/source/view/classificationcontroller.cxx +++ b/sfx2/source/view/classificationcontroller.cxx @@ -234,7 +234,9 @@ void ClassificationCategoriesController::removeEntries() } ClassificationControl::ClassificationControl(vcl::Window* pParent) - : Window(pParent, WB_DIALOGCONTROL) + // WB_NOLABEL means here that the control won't be replaced with a label + // when it wouldn't fit the available space. + : Window(pParent, WB_DIALOGCONTROL | WB_NOLABEL) { m_pLabels[SfxClassificationPolicyType::IntellectualProperty] = VclPtr<FixedText>::Create(this, WB_CENTER); m_pLabels[SfxClassificationPolicyType::NationalSecurity] = VclPtr<FixedText>::Create(this, WB_CENTER); |