Fix SelectBoxState::onSetCursor() when the user is dragging a ruler.

This commit is contained in:
David Capello 2011-04-21 18:42:56 -03:00
parent fc2fd9fdfd
commit a0db1deeee

View File

@ -108,6 +108,13 @@ bool SelectBoxState::onMouseMove(Editor* editor, Message* msg)
bool SelectBoxState::onSetCursor(Editor* editor)
{
if (m_movingRuler >= 0) {
switch (m_rulers[m_movingRuler].getOrientation()) {
case Ruler::Horizontal: jmouse_set_cursor(JI_CURSOR_SIZE_T); return true;
case Ruler::Vertical: jmouse_set_cursor(JI_CURSOR_SIZE_L); return true;
}
}
int x = jmouse_x(0);
int y = jmouse_y(0);