summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-12-07 19:55:56 +0100
committerEike Rathke <erack@redhat.com>2014-12-07 19:59:39 +0100
commit413a0655adec3e9364bc94afff638a5a9f88560c (patch)
treeeb6460b3a738ceb99e6f35bd4a95e270bff77d68 /sc
parent8414b65053dc2914e81a93d9ccd0653ffeea5f2c (diff)
umm.. row is row and col is col
Change-Id: I26c62fa1fc97aa0dd4eda1102422e5f012a126eb
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/undo/undosort.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/undo/undosort.cxx b/sc/source/ui/undo/undosort.cxx
index bd8ed8343640..acdac407b085 100644
--- a/sc/source/ui/undo/undosort.cxx
+++ b/sc/source/ui/undo/undosort.cxx
@@ -49,13 +49,13 @@ void UndoSort::Execute( bool bUndo )
ScRange aMarkRange( maParam.maSortRange);
if (maParam.mbByRow)
{
- if (aMarkRange.aStart.Col() > 0)
- aMarkRange.aStart.IncCol(-1);
+ if (aMarkRange.aStart.Row() > 0)
+ aMarkRange.aStart.IncRow(-1);
}
else
{
- if (aMarkRange.aStart.Row() > 0)
- aMarkRange.aStart.IncRow(-1);
+ if (aMarkRange.aStart.Col() > 0)
+ aMarkRange.aStart.IncCol(-1);
}
ScUndoUtil::MarkSimpleBlock(pDocShell, aMarkRange);
}