[Libreoffice-commits] core.git: sw/source sw/uiconfig
Gulsah Kose
gulsah.1004 at gmail.com
Wed Jan 24 23:00:15 UTC 2018
sw/source/uibase/uiview/view0.cxx | 12 ++++++------
sw/uiconfig/swriter/menubar/menubar.xml | 4 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
New commits:
commit eb8c84846bdba32c17b23e7da6742463085bec9d
Author: Gulsah Kose <gulsah.1004 at gmail.com>
Date: Thu Jan 4 14:50:10 2018 +0300
tdf#62182 .uno:PrintLayout and .uno:BrowseView become set commands.
The patch was sent for the ULAKBIM/Pardus project
Change-Id: I2c8c5d92bc6755043e086a0cad7739dd06a7655e
Signed-off-by: Gulsah Kose <gulsah.1004 at gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/47390
Tested-by: Jenkins <ci at libreoffice.org>
diff --git a/sw/source/uibase/uiview/view0.cxx b/sw/source/uibase/uiview/view0.cxx
index 6abebf33b8ed..311235097dbc 100644
--- a/sw/source/uibase/uiview/view0.cxx
+++ b/sw/source/uibase/uiview/view0.cxx
@@ -401,13 +401,13 @@ void SwView::ExecViewOptions(SfxRequest &rReq)
break;
case SID_BROWSER_MODE:
+ bBrowseModeChanged = !pOpt->getBrowseMode();
+ pOpt->setBrowseMode(true );
+ break;
+
case FN_PRINT_LAYOUT:
- if( STATE_TOGGLE == eState )
- bFlag = !pOpt->getBrowseMode();
- else if( nSlot == FN_PRINT_LAYOUT )
- bFlag = !bFlag;
- bBrowseModeChanged = bFlag != pOpt->getBrowseMode();
- pOpt->setBrowseMode( bFlag );
+ bBrowseModeChanged = pOpt->getBrowseMode();
+ pOpt->setBrowseMode( false );
break;
case SID_TOGGLE_NOTES:
diff --git a/sw/uiconfig/swriter/menubar/menubar.xml b/sw/uiconfig/swriter/menubar/menubar.xml
index cfcc9cd1b908..ab133daf836c 100644
--- a/sw/uiconfig/swriter/menubar/menubar.xml
+++ b/sw/uiconfig/swriter/menubar/menubar.xml
@@ -165,8 +165,8 @@
</menu:menu>
<menu:menu menu:id=".uno:ViewMenu">
<menu:menupopup>
- <menu:menuitem menu:id=".uno:PrintLayout" menu:style="radio"/>
- <menu:menuitem menu:id=".uno:BrowseView" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:PrintLayout"/>
+ <menu:menuitem menu:id=".uno:BrowseView"/>
<menu:menuseparator/>
<menu:menuitem menu:id=".uno:ToolbarMode"/>
<menu:menuitem menu:id=".uno:AvailableToolbars"/>
More information about the Libreoffice-commits
mailing list