if(graphStretch>-1)\r
{\r
av.alignment.getAlignmentAnnotation()[graphStretch].graphHeight += graphStretchY - evt.getY();\r
- if(av.alignment.getAlignmentAnnotation()[graphStretch].graphHeight <10)\r
- av.alignment.getAlignmentAnnotation()[graphStretch].graphHeight = 10;\r
+ if(av.alignment.getAlignmentAnnotation()[graphStretch].graphHeight <0)\r
+ av.alignment.getAlignmentAnnotation()[graphStretch].graphHeight = 0;\r
graphStretchY = evt.getY();\r
adjustPanelHeight();\r
ap.repaint();\r
}\r
}\r
\r
- if (row.graph>0)\r
+ if (row.graph>0 && row.graphHeight>0)\r
{\r
if(row.graph == AlignmentAnnotation.LINE_GRAPH )\r
{\r