diff --git a/hurricane/src/hurricane/DbU.cpp b/hurricane/src/hurricane/DbU.cpp index be603981..10bcb5d5 100644 --- a/hurricane/src/hurricane/DbU.cpp +++ b/hurricane/src/hurricane/DbU.cpp @@ -229,8 +229,8 @@ namespace Hurricane { DbU::Unit DbU::getOnCustomGrid ( DbU::Unit u, DbU::Unit step, SnapMode mode ) { - DbU::Unit inferior = ( u / step ) * step; - DbU::Unit modulo = abs ( u % step ); + DbU::Unit inferior = ( u / step ) * step; + DbU::Unit modulo = ( u % step ); if ( !modulo ) return u; if ( modulo < 0 ) inferior -= step; diff --git a/hurricane/src/hviewer/CellWidget.cpp b/hurricane/src/hviewer/CellWidget.cpp index 0638d7fa..f933b00d 100644 --- a/hurricane/src/hviewer/CellWidget.cpp +++ b/hurricane/src/hviewer/CellWidget.cpp @@ -178,8 +178,8 @@ namespace Hurricane { QPoint CellWidget::Spot::computeSpotPoint ( const QPoint& screenPoint ) { Point mousePoint = _cellWidget->screenToDbuPoint ( screenPoint ); - Point spotPoint = Point ( _cellWidget->_onSnapGrid(mousePoint.getX()) - , _cellWidget->_onSnapGrid(mousePoint.getY()) + Point spotPoint = Point ( _cellWidget->_onCursorGrid(mousePoint.getX()) + , _cellWidget->_onCursorGrid(mousePoint.getY()) ); return _cellWidget->dbuToScreenPoint(spotPoint); diff --git a/hurricane/src/isobar/CMakeLists.txt b/hurricane/src/isobar/CMakeLists.txt index 6cf31417..f1124fe9 100644 --- a/hurricane/src/isobar/CMakeLists.txt +++ b/hurricane/src/isobar/CMakeLists.txt @@ -97,7 +97,7 @@ install ( TARGETS Hurricane-static DESTINATION /lib/python ) else ( BUILD_STATIC ) add_library ( isobar SHARED ${sources} ) - target_link_libraries ( isobar hurricane ${PYTHON_LIBRARIES} ) + target_link_libraries ( isobar hurricane ${PYTHON_LIBRARIES} -lutil ) add_library ( Hurricane MODULE ${sources} ) set_target_properties ( Hurricane PROPERTIES