summaryrefslogtreecommitdiff
path: root/svx/source/dialog
diff options
context:
space:
mode:
authorRegina Henschel <rb.henschel@t-online.de>2016-05-05 23:25:53 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2016-05-05 22:20:46 +0000
commitb8528dcb9c0c5ee75742df3c0e5ee9f373fbf154 (patch)
tree4bae68d6b8e424b5cfc49e41649cf547d7fd630e /svx/source/dialog
parent19dde56de6f4d8613f156148f1e60256a8f5172a (diff)
tdf#94221 repair dialog for text along path
This corrects some errors in converting old kind dialog to glade. Separator items are count too, but were not considered. Therefore button and action were not sync. Two RADIOCHECK and CHECKABLE were wrong. Change-Id: Ie2c2f2febe7f7264fd08b8847dc72c3ee8d49a8c Reviewed-on: https://gerrit.libreoffice.org/24684 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'svx/source/dialog')
-rw-r--r--svx/source/dialog/fontwork.cxx29
1 files changed, 16 insertions, 13 deletions
diff --git a/svx/source/dialog/fontwork.cxx b/svx/source/dialog/fontwork.cxx
index 8a56f4c3a0cc..4c67b92b072d 100644
--- a/svx/source/dialog/fontwork.cxx
+++ b/svx/source/dialog/fontwork.cxx
@@ -194,37 +194,40 @@ SvxFontWorkDialog::SvxFontWorkDialog(SfxBindings *pBindinx,
get(m_pTbxStyle, "style");
nStyleOffId = m_pTbxStyle->GetItemId(0);
m_pTbxStyle->SetItemBits(nStyleOffId, ToolBoxItemBits::AUTOCHECK);
- nStyleRotateId = m_pTbxStyle->GetItemId(1);
+ // separator is item "1"
+ nStyleRotateId = m_pTbxStyle->GetItemId(2);
m_pTbxStyle->SetItemBits(nStyleRotateId, ToolBoxItemBits::AUTOCHECK|ToolBoxItemBits::RADIOCHECK);
- nStyleUprightId = m_pTbxStyle->GetItemId(2);
+ nStyleUprightId = m_pTbxStyle->GetItemId(3);
m_pTbxStyle->SetItemBits(nStyleUprightId, ToolBoxItemBits::AUTOCHECK|ToolBoxItemBits::RADIOCHECK);
- nStyleSlantXId = m_pTbxStyle->GetItemId(3);
+ nStyleSlantXId = m_pTbxStyle->GetItemId(4);
m_pTbxStyle->SetItemBits(nStyleSlantXId, ToolBoxItemBits::AUTOCHECK|ToolBoxItemBits::RADIOCHECK);
- nStyleSlantYId = m_pTbxStyle->GetItemId(4);
+ nStyleSlantYId = m_pTbxStyle->GetItemId(5);
m_pTbxStyle->SetItemBits(nStyleSlantYId, ToolBoxItemBits::AUTOCHECK|ToolBoxItemBits::RADIOCHECK);
get(m_pTbxShadow, "shadow");
nShowFormId = m_pTbxShadow->GetItemId(0);
m_pTbxShadow->SetItemBits(nShowFormId, ToolBoxItemBits::AUTOCHECK|ToolBoxItemBits::CHECKABLE);
nOutlineId = m_pTbxShadow->GetItemId(1);
- m_pTbxShadow->SetItemBits(nOutlineId, ToolBoxItemBits::AUTOCHECK|ToolBoxItemBits::RADIOCHECK);
- nShadowOffId = m_pTbxShadow->GetItemId(2);
+ m_pTbxShadow->SetItemBits(nOutlineId, ToolBoxItemBits::AUTOCHECK|ToolBoxItemBits::CHECKABLE);
+ // separator is item "2"
+ nShadowOffId = m_pTbxShadow->GetItemId(3);
m_pTbxShadow->SetItemBits(nShadowOffId, ToolBoxItemBits::AUTOCHECK|ToolBoxItemBits::RADIOCHECK);
- nShadowNormalId = m_pTbxShadow->GetItemId(3);
+ nShadowNormalId = m_pTbxShadow->GetItemId(4);
m_pTbxShadow->SetItemBits(nShadowNormalId, ToolBoxItemBits::AUTOCHECK|ToolBoxItemBits::RADIOCHECK);
- nShadowSlantId = m_pTbxShadow->GetItemId(4);
+ nShadowSlantId = m_pTbxShadow->GetItemId(5);
m_pTbxShadow->SetItemBits(nShadowSlantId, ToolBoxItemBits::AUTOCHECK|ToolBoxItemBits::RADIOCHECK);
get(m_pTbxAdjust, "adjust");
nAdjustMirrorId = m_pTbxAdjust->GetItemId(0);
m_pTbxAdjust->SetItemBits(nAdjustMirrorId, ToolBoxItemBits::AUTOCHECK|ToolBoxItemBits::CHECKABLE);
- nAdjustLeftId = m_pTbxAdjust->GetItemId(1);
- m_pTbxAdjust->SetItemBits(nAdjustLeftId, ToolBoxItemBits::AUTOCHECK|ToolBoxItemBits::CHECKABLE);
- nAdjustCenterId = m_pTbxAdjust->GetItemId(2);
+ // separator is item "1"
+ nAdjustLeftId = m_pTbxAdjust->GetItemId(2);
+ m_pTbxAdjust->SetItemBits(nAdjustLeftId, ToolBoxItemBits::AUTOCHECK|ToolBoxItemBits::RADIOCHECK);
+ nAdjustCenterId = m_pTbxAdjust->GetItemId(3);
m_pTbxAdjust->SetItemBits(nAdjustCenterId, ToolBoxItemBits::AUTOCHECK|ToolBoxItemBits::RADIOCHECK);
- nAdjustRightId = m_pTbxAdjust->GetItemId(3);
+ nAdjustRightId = m_pTbxAdjust->GetItemId(4);
m_pTbxAdjust->SetItemBits(nAdjustRightId, ToolBoxItemBits::AUTOCHECK|ToolBoxItemBits::RADIOCHECK);
- nAdjustAutoSizeId = m_pTbxAdjust->GetItemId(4);
+ nAdjustAutoSizeId = m_pTbxAdjust->GetItemId(5);
m_pTbxAdjust->SetItemBits(nAdjustAutoSizeId, ToolBoxItemBits::AUTOCHECK|ToolBoxItemBits::RADIOCHECK);
ApplyImageList();