summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-07-17 12:35:01 +0200
committerEike Rathke <erack@redhat.com>2017-07-17 12:35:12 +0200
commit89805d2846298cfa7345aef2673666649a42773b (patch)
tree1f1e606b99372f234a254c149f8c86e09736930c
parentfe6af0a260301f50a83c0b14a7fabad9fffe78cf (diff)
ScAddress aPos is already available, use it
Change-Id: I5d7cb8a4263b454438e7af45192f9008f283150d
-rw-r--r--sc/source/ui/view/viewfunc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index fb2c6d909df1..d287ba5fe63f 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -545,7 +545,7 @@ void ScViewFunc::EnterData( SCCOL nCol, SCROW nRow, SCTAB nTab,
aPattern.GetItemSet().Put( SfxUInt32Item( ATTR_VALUE_FORMAT, nFormat));
ScMarkData aMark;
aMark.SelectTable( i, true);
- aMark.SetMarkArea( ScRange( nCol, nRow, i));
+ aMark.SetMarkArea( ScRange( aPos));
rFunc.ApplyAttributes( aMark, aPattern, false);
bNumFmtChanged = true;
}