summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg/diactrl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/dlg/diactrl.cxx')
-rw-r--r--sd/source/ui/dlg/diactrl.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/dlg/diactrl.cxx b/sd/source/ui/dlg/diactrl.cxx
index d0e0a408a1f8..5e1351657eb1 100644
--- a/sd/source/ui/dlg/diactrl.cxx
+++ b/sd/source/ui/dlg/diactrl.cxx
@@ -30,6 +30,7 @@
#include <strings.hrc>
#include <diactrl.hxx>
+#include <SlideSorter.hxx>
#include <sdresid.hxx>
#include <app.hrc>
@@ -61,7 +62,7 @@ SdPagesField::SdPagesField( vcl::Window* pParent,
// set parameter of MetricFields
m_xWidget->set_digits(0);
- m_xWidget->set_range(1, 15);
+ m_xWidget->set_range(1, MAX_PAGES_PER_ROW);
m_xWidget->set_increments(1, 5);
m_xWidget->connect_value_changed(LINK(this, SdPagesField, ModifyHdl));
m_xWidget->connect_output(LINK(this, SdPagesField, OutputHdl));