Permalink
Browse files

Another fix related to APSTUD-3992 OSX Studio Freezes After JavaScrip…

…t CollapseAll
  • Loading branch information...
1 parent 5f99dcb commit 1ba1ad90a61833377e81f6692e52f0c78e612c07 @sgtcoolguy sgtcoolguy committed Dec 28, 2011
@@ -795,7 +795,7 @@ void doPaint(GC gc, ILineRange visibleLines)
List<LineMap> getLineMap(StyledText text, ILineRange visibleLines)
{
List<LineMap> lineMap = new ArrayList<LineMap>();
- int endLine = end(visibleLines);
+ int endLine = Math.min(end(visibleLines), text.getLineCount() - 1);
int firstVisibleLineY = 0;
int lineHeight = 1;
try
@@ -828,7 +828,7 @@ void doPaint(GC gc, ILineRange visibleLines)
}
catch (Exception e)
{
- IdeLog.logError(EditorEplPlugin.getDefault(), "Error translating line number to y offset in text widget", e); //$NON-NLS-1$
+ IdeLog.logError(EditorEplPlugin.getDefault(), MessageFormat.format("Error translating line number {0} to y offset in text widget", i), e); //$NON-NLS-1$
}
}
}

0 comments on commit 1ba1ad9

Please sign in to comment.