git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b8b9fc
)
Cant have col less than 0
author
amwaterhouse
<Andrew Waterhouse>
Thu, 27 Jul 2006 07:42:06 +0000
(07:42 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Thu, 27 Jul 2006 07:42:06 +0000
(07:42 +0000)
src/jalview/gui/ScalePanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/ScalePanel.java
b/src/jalview/gui/ScalePanel.java
index
a6027aa
..
54924d0
100755
(executable)
--- a/
src/jalview/gui/ScalePanel.java
+++ b/
src/jalview/gui/ScalePanel.java
@@
-207,6
+207,8
@@
public class ScalePanel extends JPanel implements MouseMotionListener, MouseList
mouseDragging = true;
\r
\r
int res = (evt.getX() / av.getCharWidth()) + av.getStartRes();
\r
+ if(res<0)
\r
+ res = 0;
\r
\r
if(av.hasHiddenColumns)
\r
res = av.getColumnSelection().adjustForHiddenColumns(res);
\r
@@
-229,7
+231,6
@@
public class ScalePanel extends JPanel implements MouseMotionListener, MouseList
\r
\r
\r
-
\r
SequenceGroup sg = av.getSelectionGroup();
\r
\r
if (sg != null)
\r