summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-06-22 23:54:44 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-06-23 20:43:02 +0200
commitc2291931213ae990d599b6889d3dd01ce4feb53f (patch)
treec0017ad0eb744aa3695521ff30d9e8856460fe1d
parent081df814982da742c8372bef3ffc93e391aa2ce9 (diff)
accept also one cell chart ranges for external data provider, fdo#79772
Change-Id: I2078205b0aecdea13e342c4a625b82a70df0fb4f
-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 6af4fc8248ac..866d5370f11a 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 );