Skip to content

Commit a5d8140

Browse files
committed
Fix minimum heigt for the vertical scale of vertical concentration sections
1 parent 8b83991 commit a5d8140

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/Gral/GRALDomain/DrawMap/Domain_DrawContourMap.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,11 @@ private void DrawContourMap(Graphics g, DrawingObjects _drobj, double form1_west
166166

167167
if (RectWhite.Right > 50) // if right edge inside actual view
168168
{
169-
int _y0_ = (int) (x_step * (int)(maxh / x_step + 1));
169+
int _y0_ = 0;
170+
if (x_step >= 0)
171+
{
172+
_y0_ = (int)(x_step * (int)(maxh / x_step));
173+
}
170174
int _yc = 0;
171175
i = 0;
172176
if (_y0_ == 0)

0 commit comments

Comments
 (0)