From 01351fe161f032b473c0a24faae7a9c4f7e21c99 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 26 Sep 2012 15:16:54 +0000 Subject: [PATCH] Fix bug in sorting by entry algorithm --- src/LightApp/LightApp_DataObject.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LightApp/LightApp_DataObject.cxx b/src/LightApp/LightApp_DataObject.cxx index b840feae1..0f14722e4 100644 --- a/src/LightApp/LightApp_DataObject.cxx +++ b/src/LightApp/LightApp_DataObject.cxx @@ -450,7 +450,7 @@ bool LightApp_DataObject::compare( const QVariant& left, const QVariant& right, rid = idsRight[i].toInt( &okRight ); if ( okLeft && okRight ) { // both seem to be correct integer ID - return lid < rid; + if ( lid < rid ) return true; } else if ( okLeft || okRight ) { // objects with correct (int) ID have higher priority -- 2.39.2