diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2017-05-04 19:31:52 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2017-05-04 19:31:52 (GMT) |
commit | 9520f1ec9d04c09267d671635fedd7368ea9ab0b (patch) | |
tree | b1a967503d00f66b934e3b6821aaf8498b5a98cc /tksao/frame | |
parent | 667315bf9bfdea07e8ac360ea2d833303988f0c9 (diff) | |
download | blt-9520f1ec9d04c09267d671635fedd7368ea9ab0b.zip blt-9520f1ec9d04c09267d671635fedd7368ea9ab0b.tar.gz blt-9520f1ec9d04c09267d671635fedd7368ea9ab0b.tar.bz2 |
fix panda dash X11 render
Diffstat (limited to 'tksao/frame')
-rw-r--r-- | tksao/frame/baseellipse.C | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tksao/frame/baseellipse.C b/tksao/frame/baseellipse.C index f041d7a..43ccff4 100644 --- a/tksao/frame/baseellipse.C +++ b/tksao/frame/baseellipse.C @@ -222,10 +222,12 @@ void BaseEllipse::renderXBezierDashDraw(Drawable drawable, GC lgc) // crude attempt to clip unwanted drawlines // only works for SRC for (int ii=0; ii<xpointNum_; ii+=2) { - XPoint* ptr1 = xpoint_+ii; - XPoint* ptr2 = xpoint_+ii+1; - XDrawLine(display, drawable, lgc, - (*ptr1).x, (*ptr1).y, (*ptr2).x, (*ptr2).y); + if (ii+1 < xpointNum_) { + XPoint* ptr1 = xpoint_+ii; + XPoint* ptr2 = xpoint_+ii+1; + XDrawLine(display, drawable, lgc, + (*ptr1).x, (*ptr1).y, (*ptr2).x, (*ptr2).y); + } } } |