summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-10-20 09:35:23 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2020-10-21 15:41:14 +0200
commitaf580166b64e1009eb76b750d7cb92121f994d08 (patch)
treee5173567be54313d47cbc95ba9525673186a441c
parent0431fae4d04ca892d11a860c2b11e4a6ca079031 (diff)
tdf#137608 allow insert break to use a page number > 9999
writer is using sal_uInt16 for the page number. If we wanted anything bigger then the max possible sal_uInt16 then we would need to make real changes to writer to change the type. Leaving the type as sal_uInt16 but allowing 65535 then makes it real easy to use the ui to force writer to loop over to page 0 and I can predict the moaning about that. So I propose instead of an arbitrary max of 10000-1 to have an arbitrary max of 65535-10000 for 55535 instead. and use same max-page in textflow as insert, break and table-textflow too as well as para-textflow Change-Id: Id4c244e144f718c8917786cb9846625e4845b65a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104505 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--cui/uiconfig/ui/textflowpage.ui2
-rw-r--r--sw/uiconfig/swriter/ui/insertbreak.ui2
-rw-r--r--sw/uiconfig/swriter/ui/tabletextflowpage.ui2
3 files changed, 3 insertions, 3 deletions
diff --git a/cui/uiconfig/ui/textflowpage.ui b/cui/uiconfig/ui/textflowpage.ui
index bcca12f89d48..4edafdc277a0 100644
--- a/cui/uiconfig/ui/textflowpage.ui
+++ b/cui/uiconfig/ui/textflowpage.ui
@@ -15,7 +15,7 @@
<property name="page_increment">10</property>
</object>
<object class="GtkAdjustment" id="adjustment3">
- <property name="upper">9999</property>
+ <property name="upper">55535</property>
<property name="value">1</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
diff --git a/sw/uiconfig/swriter/ui/insertbreak.ui b/sw/uiconfig/swriter/ui/insertbreak.ui
index 7aca5957f514..e8140048487c 100644
--- a/sw/uiconfig/swriter/ui/insertbreak.ui
+++ b/sw/uiconfig/swriter/ui/insertbreak.ui
@@ -3,7 +3,7 @@
<interface domain="sw">
<requires lib="gtk+" version="3.18"/>
<object class="GtkAdjustment" id="adjustment1">
- <property name="upper">9999</property>
+ <property name="upper">55535</property>
<property name="value">1</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
diff --git a/sw/uiconfig/swriter/ui/tabletextflowpage.ui b/sw/uiconfig/swriter/ui/tabletextflowpage.ui
index fc4baf97632c..be1b0c581354 100644
--- a/sw/uiconfig/swriter/ui/tabletextflowpage.ui
+++ b/sw/uiconfig/swriter/ui/tabletextflowpage.ui
@@ -3,7 +3,7 @@
<interface domain="sw">
<requires lib="gtk+" version="3.18"/>
<object class="GtkAdjustment" id="adjustment1">
- <property name="upper">9999</property>
+ <property name="upper">55535</property>
<property name="value">1</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>