[Libreoffice-commits] core.git: Branch 'libreoffice-4-1-0' - connectivity/source
Lionel Elie Mamane
lionel at mamane.lu
Fri Jul 12 04:45:00 PDT 2013
connectivity/source/parse/sqliterator.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 89318f13381142942944670d94d209e21526115c
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date: Thu Jul 11 17:42:31 2013 +0200
sort is ascending by default
Change-Id: I38354405acbbdb27b9e7ce1d19e862b7b352c850
Reviewed-on: https://gerrit.libreoffice.org/4840
Reviewed-by: David Tardon <dtardon at redhat.com>
Tested-by: David Tardon <dtardon at redhat.com>
Reviewed-by: Andras Timar <atimar at suse.com>
Reviewed-by: Petr Mladek <pmladek at suse.cz>
diff --git a/connectivity/source/parse/sqliterator.cxx b/connectivity/source/parse/sqliterator.cxx
index 6007eb9..8d0e20f 100644
--- a/connectivity/source/parse/sqliterator.cxx
+++ b/connectivity/source/parse/sqliterator.cxx
@@ -1110,7 +1110,7 @@ void OSQLParseTreeIterator::traverseByColumnNames(const OSQLParseNode* pSelectNo
OSQLParseNode * pOptAscDesc = pColumnRef->getParent()->getChild(1);
OSL_ENSURE(pOptAscDesc != NULL,"OSQLParseTreeIterator: error in parse tree!");
- sal_Bool bAscending = pOptAscDesc && SQL_ISTOKEN(pOptAscDesc,ASC);
+ sal_Bool bAscending = ! (pOptAscDesc && SQL_ISTOKEN(pOptAscDesc,DESC));
setOrderByColumnName(sColumnName, aTableRange,bAscending);
}
else
More information about the Libreoffice-commits
mailing list