* ./hurricane/src/hurricane :

- Change: In RulerCommand, allow the ruler to be on the cursor grid, not the
        snap grid (usesul for the real mode where the snap grid is much bigger
        than the cursor grid).
This commit is contained in:
Jean-Paul Chaput 2009-10-21 09:18:12 +00:00
parent e5c4402395
commit a72131367e
1 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ namespace Hurricane {
{
if ( !isActive() ) return;
_ruler->setExtremity ( _cellWidget->_onSnapGrid(_cellWidget->screenToDbuPoint(event->pos())) );
_ruler->setExtremity ( _cellWidget->_onCursorGrid(_cellWidget->screenToDbuPoint(event->pos())) );
_cellWidget->update ();
}
@ -69,7 +69,7 @@ namespace Hurricane {
and (event->button() == Qt::LeftButton ) ) {
setActive ( true );
_ruler.reset ( new Ruler
(_cellWidget->_onSnapGrid(_cellWidget->screenToDbuPoint(_cellWidget->getMousePosition())) ) );
(_cellWidget->_onCursorGrid(_cellWidget->screenToDbuPoint(_cellWidget->getMousePosition())) ) );
return;
}