summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-06-22 23:54:44 +0200
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-06-23 02:32:31 +0200
commitca843915505ed6fe6eee2639840cb1ad03a83992 (patch)
tree53fb63f26baaeffbfe36ff89738da23ea12d3caa /sc
parentef242d3ac8b3771bc31e6accc2f09bc28a57e146 (diff)
accept also one cell chart ranges for external data provider, fdo#79772
Change-Id: I2078205b0aecdea13e342c4a625b82a70df0fb4f
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/drawfunc/fuins2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/drawfunc/fuins2.cxx b/sc/source/ui/drawfunc/fuins2.cxx
index 52af12f3ad89..c23d2be2359f 100644
--- a/sc/source/ui/drawfunc/fuins2.cxx
+++ b/sc/source/ui/drawfunc/fuins2.cxx
@@ -112,7 +112,7 @@ void lcl_ChartInit( const uno::Reference < embed::XEmbeddedObject >& xObj, ScVie
{
PutInOrder( nCol1, nCol2 );
PutInOrder( nRow1, nRow2 );
- if ( nCol2>nCol1 || nRow2>nRow1 )
+ if (nCol2 >= nCol1 || nRow2 >= nRow1)
{
ScDocument* pDoc = pViewData->GetDocument();
pDoc->LimitChartArea( nTab1, nCol1,nRow1, nCol2,nRow2 );