summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorDaniel Silva <danielfaleirosilva@gmail.com>2018-12-08 10:15:26 -0200
committerMichael Stahl <Michael.Stahl@cib.de>2019-07-31 18:11:35 +0200
commitf50363c7008c239d302944144beb256de6a55f38 (patch)
treeba40f5f919601157c7860bc5fc17c4423c886d30 /sw/source
parent08d23078d4636fc9fadfa45d4a0ed847cfcf7e9c (diff)
tdf#54908 Make selection active if there's a selection (Writer)
If the user make a selection in Writer and then opens print dialog or PDF export dialog, Print Selection is the default option. Change-Id: I46ba90cfeabafef1c05dd3e5008ecf55f177a146 Reviewed-on: https://gerrit.libreoffice.org/64804 Reviewed-by: Michael Stahl <Michael.Stahl@cib.de> Tested-by: Jenkins
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/view/printdata.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/view/printdata.cxx b/sw/source/core/view/printdata.cxx
index a92f3661c990..a2da5005cc38 100644
--- a/sw/source/core/view/printdata.cxx
+++ b/sw/source/core/view/printdata.cxx
@@ -301,7 +301,8 @@ SwPrintUIOptions::SwPrintUIOptions(
aWidgetIds[4] = "rbRangeSelection";
m_aUIProperties[nIdx++].Value = setChoiceRadiosControlOpt(aWidgetIds, OUString(),
aHelpIds, aPrintRangeName,
- aChoices, 0 /* always default to 'All pages' */,
+ aChoices,
+ bHasSelection ? 4 : 0,
aChoicesDisabled);
// show an Edit dependent on "Pages" selected