OSDN Git Service

fixing mouse move
authorsuma <devnull@localhost>
Sat, 6 Dec 2008 15:24:40 +0000 (00:24 +0900)
committersuma <devnull@localhost>
Sat, 6 Dec 2008 15:24:40 +0000 (00:24 +0900)
src/control/standard/hexview.cpp

index 33aab91..0036b3e 100644 (file)
@@ -260,7 +260,7 @@ quint64 HexView::moveByMouse(int xx, int yy)
                x = 0;
        }
        if (y < 0) {
-               y = 0;
+               x = y = 0;
        }
 
        cur_->Position = MIN(cur_->Top + x + y * 16, doc_->length());