Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Maetzel2004-04-07 19:51:59 +0000
committerKai Maetzel2004-04-07 19:51:59 +0000
commit2c5bdde8d020f5a2f11942f5bb1960d3ed18e8de (patch)
tree2bcc48b52b6887d317099f3ea251de0e294ca92e
parent90a80085e4605c5244fe85838874009bce0d3499 (diff)
downloadeclipse.platform.text-2c5bdde8d020f5a2f11942f5bb1960d3ed18e8de.tar.gz
eclipse.platform.text-2c5bdde8d020f5a2f11942f5bb1960d3ed18e8de.tar.xz
eclipse.platform.text-2c5bdde8d020f5a2f11942f5bb1960d3ed18e8de.zip
spelling correction
fixed error propagation error on division
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/source/OverviewRuler.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/OverviewRuler.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/OverviewRuler.java
index 487c1d94e..bc0caffd6 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/OverviewRuler.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/OverviewRuler.java
@@ -599,7 +599,7 @@ public class OverviewRuler implements IOverviewRuler {
fAnnotationHeight= hh;
int startLine= textWidget.getLineAtOffset(widgetRegion.getOffset());
- yy= Math.min(startLine * (size.y / maxLines), size.y - hh);
+ yy= Math.min((startLine * size.y) / maxLines, size.y - hh);
if (fill != null) {
gc.setBackground(fill);
@@ -683,8 +683,8 @@ public class OverviewRuler implements IOverviewRuler {
if (fTextViewer instanceof ITextViewerExtension5) {
ITextViewerExtension5 extension= (ITextViewerExtension5) fTextViewer;
- lines[0]= extension.widgetlLine2ModelLine(lines[0]);
- lines[1]= extension.widgetlLine2ModelLine(lines[1]);
+ lines[0]= extension.widgetLine2ModelLine(lines[0]);
+ lines[1]= extension.widgetLine2ModelLine(lines[1]);
} else {
try {
IRegion visible= fTextViewer.getVisibleRegion();

Back to the top