From: <kp...@us...> - 2010-03-30 09:13:27
|
Revision: 17551 http://jedit.svn.sourceforge.net/jedit/?rev=17551&view=rev Author: kpouer Date: 2010-03-30 09:13:21 +0000 (Tue, 30 Mar 2010) Log Message: ----------- fixed import and variable name Modified Paths: -------------- jEdit/trunk/org/gjt/sp/jedit/syntax/Chunk.java Modified: jEdit/trunk/org/gjt/sp/jedit/syntax/Chunk.java =================================================================== --- jEdit/trunk/org/gjt/sp/jedit/syntax/Chunk.java 2010-03-29 19:03:37 UTC (rev 17550) +++ jEdit/trunk/org/gjt/sp/jedit/syntax/Chunk.java 2010-03-30 09:13:21 UTC (rev 17551) @@ -28,11 +28,9 @@ import java.awt.font.*; import java.awt.geom.*; import java.awt.*; -import java.awt.font.TextAttribute; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; -import javax.swing.*; import org.gjt.sp.jedit.Debug; import org.gjt.sp.jedit.IPropertyManager; @@ -523,7 +521,7 @@ private float layoutGlyphs(FontRenderContext frc, char text[], int start, - int limit) + int end) { float width = 0.0f; int max = 0; @@ -531,9 +529,9 @@ glyphs = new LinkedList<GlyphVector>(); - while (max != -1 && start < limit) + while (max != -1 && start < end) { - max = fontSubstEnabled ? dflt.canDisplayUpTo(text, start, limit) + max = fontSubstEnabled ? dflt.canDisplayUpTo(text, start, end) : -1; if (max == -1) { @@ -541,7 +539,7 @@ frc, text, start, - limit); + end); } else { @@ -584,7 +582,7 @@ * can. */ int last = start; - while (last < limit && + while (last < end && f.canDisplay(text[last]) && !dflt.canDisplay(text[last])) last++; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |