mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
LineOverlay Spans that were very narrow weren't displaying
This commit is contained in:
parent
87e0892ac5
commit
4bb339eec8
@ -80,6 +80,7 @@ void gLineOverlayBar::paint(gGraph & w, int left, int topp, int width, int heigh
|
||||
if (m_flt==FT_Span) {
|
||||
//x2=w.x2p(Y);
|
||||
x2=double(width)/double(xx)*double(Y-w.min_x)+left;
|
||||
if (int(x1)==int(x2)) x2+=1;
|
||||
if (x2<left) x2=left;
|
||||
if (x1>width+left) x1=width+left;
|
||||
//double w1=x2-x1;
|
||||
|
Loading…
Reference in New Issue
Block a user