2,2c2,2 < * @(#)PolyLineFigure.java 5.2 --- > * @(#)PolyLineFigure.java 3a4,9 > * Project: JHotdraw - a GUI framework for technical drawings > * http://www.jhotdraw.org > * http://jhotdraw.sourceforge.net > * Copyright: © by the original author(s) and all contributors > * License: Lesser GNU Public License (LGPL) > * http://www.opensource.org/licenses/lgpl-license.html 19a26,27 > * > * @version <$CURRENT_VERSION$> 56,56c64,64 < while (k.hasMoreElements()) --- > while (k.hasMoreElements()) { 57a66,66 > } 68,68c77,77 < for (int i = 0; i < fPoints.size(); i++) --- > for (int i = 0; i < fPoints.size(); i++) { 69a79,79 > } 94,94c104,104 < while (k.hasMoreElements()) --- > while (k.hasMoreElements()) { 96a107,107 > } 127,127c138,138 < if (i != -1) --- > if (i != -1) { 128a140,140 > } 206,206c218,218 < if (!bounds.contains(x, y)) --- > if (!bounds.contains(x, y)) { 207a220,220 > } 213,213c226,226 < if (Geom.lineContainsPoint(p1.x, p1.y, p2.x, p2.y, x, y)) --- > if (Geom.lineContainsPoint(p1.x, p1.y, p2.x, p2.y, x, y)) { 215a229,229 > } 229,229c243,243 < if (Geom.lineContainsPoint(p1.x, p1.y, p2.x, p2.y, x, y)) --- > if (Geom.lineContainsPoint(p1.x, p1.y, p2.x, p2.y, x, y)) { 231a246,246 > } 259,259c274,274 < if (getStartDecoration() != null) --- > if (getStartDecoration() != null) { 260a276,276 > } 261,261c277,277 < if (getEndDecoration() != null) --- > if (getEndDecoration() != null) { 262a279,279 > } 282,282c299,299 < if ((decoration & ARROW_TIP_START) != 0) --- > if ((decoration & ARROW_TIP_START) != 0) { 283a301,302 > } > else { 284,284d300 < else 285a304,304 > } 286,286c305,305 < if ((decoration & ARROW_TIP_END) != 0) --- > if ((decoration & ARROW_TIP_END) != 0) { 287a307,308 > } > else { 288,288d306 < else 290a311,311 > } 292a314,314 > else { 293,293d313 < else 295a317,317 > }