diff options
author | 4k5h1t <ask160203@gmail.com> | 2022-02-13 00:17:13 +0530 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2022-02-15 06:18:29 +0100 |
commit | 31180cc24f8ff66895c52a2d4aa828ee0dcb34f3 (patch) | |
tree | 2f9a65d527e9d796888332e1e66d8c9e0885b434 /svx/source | |
parent | d4ce88a36428231e65cc247967890496192e78cc (diff) |
tdf#145092 - Remove option "Word justify" from FontWork toolbar
Change-Id: Id36f7b1b8313868e730018737b353d92adbde33e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124337
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/tbxctrls/fontworkgallery.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/svx/source/tbxctrls/fontworkgallery.cxx b/svx/source/tbxctrls/fontworkgallery.cxx index de42c5f639c4..39c3b0af240e 100644 --- a/svx/source/tbxctrls/fontworkgallery.cxx +++ b/svx/source/tbxctrls/fontworkgallery.cxx @@ -286,7 +286,6 @@ private: std::unique_ptr<weld::RadioButton> mxLeft; std::unique_ptr<weld::RadioButton> mxCenter; std::unique_ptr<weld::RadioButton> mxRight; - std::unique_ptr<weld::RadioButton> mxWord; std::unique_ptr<weld::RadioButton> mxStretch; bool mbSettingValue; @@ -305,14 +304,12 @@ FontworkAlignmentWindow::FontworkAlignmentWindow(svt::PopupWindowController* pCo , mxLeft(m_xBuilder->weld_radio_button("left")) , mxCenter(m_xBuilder->weld_radio_button("center")) , mxRight(m_xBuilder->weld_radio_button("right")) - , mxWord(m_xBuilder->weld_radio_button("word")) , mxStretch(m_xBuilder->weld_radio_button("stretch")) , mbSettingValue(false) { mxLeft->connect_toggled(LINK(this, FontworkAlignmentWindow, SelectHdl)); mxCenter->connect_toggled(LINK(this, FontworkAlignmentWindow, SelectHdl)); mxRight->connect_toggled(LINK(this, FontworkAlignmentWindow, SelectHdl)); - mxWord->connect_toggled(LINK(this, FontworkAlignmentWindow, SelectHdl)); mxStretch->connect_toggled(LINK(this, FontworkAlignmentWindow, SelectHdl)); AddStatusListener( gsFontworkAlignment ); @@ -328,8 +325,9 @@ void FontworkAlignmentWindow::implSetAlignment( int nSurface, bool bEnabled ) mxCenter->set_sensitive(bEnabled); mxRight->set_active(nSurface == 2 && bEnabled); mxRight->set_sensitive(bEnabled); - mxWord->set_active(nSurface == 3 && bEnabled); - mxWord->set_sensitive(bEnabled); + //Refer https://bugs.documentfoundation.org/show_bug.cgi?id=145092 for why following lines are commented + //mxWord->set_active(nSurface == 3 && bEnabled); + //mxWord->set_sensitive(bEnabled); mxStretch->set_active(nSurface == 4 && bEnabled); mxStretch->set_sensitive(bEnabled); mbSettingValue = bSettingValue; @@ -364,8 +362,9 @@ IMPL_LINK(FontworkAlignmentWindow, SelectHdl, weld::Toggleable&, rButton, void) nAlignment = 1; else if (mxRight->get_active()) nAlignment = 2; - else if (mxWord->get_active()) - nAlignment = 3; + //Refer https://bugs.documentfoundation.org/show_bug.cgi?id=145092 for why following lines are commented + //else if (mxWord->get_active()) + // nAlignment = 3; else nAlignment = 4; |