summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-03-19 12:44:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-03-19 16:43:15 +0100
commit93b562432a2f4d0a37afcfa89a4e88c83c229157 (patch)
treedb5661030c2ce937691a17e4a892c1b2ac2be2ed /chart2
parent51cd6a93a6dd5bbe98548ea0fd702410a6a2d001 (diff)
Resolves: tdf#124111 Cannot enter negative number
Change-Id: I9b08595f5dc7ca0bd3e86891330dd1caa0446e63 Reviewed-on: https://gerrit.libreoffice.org/69417 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/dialogs/tp_AxisPositions.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/chart2/source/controller/dialogs/tp_AxisPositions.cxx b/chart2/source/controller/dialogs/tp_AxisPositions.cxx
index 3b27e1493836..1a6248b83565 100644
--- a/chart2/source/controller/dialogs/tp_AxisPositions.cxx
+++ b/chart2/source/controller/dialogs/tp_AxisPositions.cxx
@@ -54,6 +54,11 @@ AxisPositionsTabPage::AxisPositionsTabPage(TabPageParent pWindow,const SfxItemSe
{
m_xLB_CrossesAt->connect_changed(LINK(this, AxisPositionsTabPage, CrossesAtSelectHdl));
m_xLB_PlaceLabels->connect_changed(LINK(this, AxisPositionsTabPage, PlaceLabelsSelectHdl));
+
+ const double nMin = static_cast<double>(SAL_MIN_INT64);
+ const double nMax = static_cast<double>(SAL_MAX_INT64);
+ m_xED_CrossesAt->set_range(nMin, nMax);
+ m_xED_LabelDistance->set_range(nMin, nMax);
}
AxisPositionsTabPage::~AxisPositionsTabPage()