X-Git-Url: http://www2.svjatoslav.eu/gitweb/?p=sixth-3d.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fgui%2FtextEditorComponent%2FTextLine.java;h=a8f212969331befa949453e62240834b23c764ff;hp=d3cf315f20ea386a255d0dd64baea5fe4c39ddf0;hb=e56f9b775bd49c31e8efab7204bee699036942b3;hpb=6213716671ccab6b7256de41838e1f5401ce173c diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/gui/textEditorComponent/TextLine.java b/src/main/java/eu/svjatoslav/sixth/e3d/gui/textEditorComponent/TextLine.java index d3cf315..a8f2129 100755 --- a/src/main/java/eu/svjatoslav/sixth/e3d/gui/textEditorComponent/TextLine.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/gui/textEditorComponent/TextLine.java @@ -1,10 +1,10 @@ /* - * Sixth - System for data storage, computation, exploration and interaction. - * Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * + * Sixth 3D engine. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * * This program is free software; you can redistribute it and/or * modify it under the terms of version 3 of the GNU Lesser General Public License * or later as published by the Free Software Foundation. + * */ package eu.svjatoslav.sixth.e3d.gui.textEditorComponent; @@ -107,7 +107,7 @@ public class TextLine { return 0; for (int i = 0; i < chars.size(); i++) - if (!chars.get(i).isEmpty()) + if (chars.get(i).hasValue()) return i; throw new RuntimeException("This code shall never execute"); @@ -172,7 +172,7 @@ public class TextLine { int newLength = 0; for (int i = chars.size() - 1; i >= 0; i--) - if (!chars.get(i).isEmpty()) { + if (chars.get(i).hasValue()) { newLength = i + 1; break; }