Skip to content

Commit

Permalink
Fixed issue #1976 (crash on cross mode, lw > 1 and oversampling)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koefferlein committed Jan 21, 2025
1 parent 18c86cb commit 2b2eb2e
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/laybasic/laybasic/layLayoutViewBase.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1745,13 +1745,21 @@ LayoutViewBase::icon_for_layer (const LayerPropertiesConstIterator &iter, unsign

frame.fill (i, w - 1 - p0, w - p0);
frame.fill (i, w - 1 - (wp - p1), w - (wp - p1));
frame.fill (i, w - 1 - p0x, w - p0x);
frame.fill (i, w - 1 - (wp - p1x), w - (wp - p1x));
if ((unsigned int) p0x < w) {
frame.fill (i, w - 1 - p0x, w - p0x);
}
if ((unsigned int) (wp - p1x) < w) {
frame.fill (i, w - 1 - (wp - p1x), w - (wp - p1x));
}

while (d < ddx) {
d += ddy;
frame.fill (i, w - 1 - p0x, w - p0x);
frame.fill (i, w - 1 - (wp - p1x), w - (wp - p1x));
if ((unsigned int) p0x < w) {
frame.fill (i, w - 1 - p0x, w - p0x);
}
if ((unsigned int) (wp - p1x) < w) {
frame.fill (i, w - 1 - (wp - p1x), w - (wp - p1x));
}
++p0x;
++p1x;
}
Expand Down

0 comments on commit 2b2eb2e

Please sign in to comment.