]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix bug in sorting by entry algorithm
authorvsr <vsr@opencascade.com>
Wed, 26 Sep 2012 15:16:54 +0000 (15:16 +0000)
committervsr <vsr@opencascade.com>
Wed, 26 Sep 2012 15:16:54 +0000 (15:16 +0000)
src/LightApp/LightApp_DataObject.cxx

index b840feae12c6d7d6b7861769f348a5f903705f79..0f14722e47ac52aa89ef76cc553296df4c100933 100644 (file)
@@ -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