From: vsr Date: Wed, 26 Sep 2012 15:16:54 +0000 (+0000) Subject: Fix bug in sorting by entry algorithm X-Git-Tag: V6_6_0a1~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=01351fe161f032b473c0a24faae7a9c4f7e21c99;p=modules%2Fgui.git Fix bug in sorting by entry algorithm --- 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