[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - connectivity/source

Lionel Elie Mamane lionel at mamane.lu
Thu Jul 11 23:56:01 PDT 2013


 connectivity/source/parse/sqliterator.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1572082c1e7300fc20c33d9f87c1a7460a180d7a
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/4844
    Reviewed-by: David Tardon <dtardon at redhat.com>
    Tested-by: David Tardon <dtardon at redhat.com>

diff --git a/connectivity/source/parse/sqliterator.cxx b/connectivity/source/parse/sqliterator.cxx
index cb17652..7967683 100644
--- a/connectivity/source/parse/sqliterator.cxx
+++ b/connectivity/source/parse/sqliterator.cxx
@@ -1112,7 +1112,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