Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed2008-07-16 20:33:00 +0000
committerGrant Gayed2008-07-16 20:33:00 +0000
commit44831be69304b66415d3d33a9acdebdcbb92d6e6 (patch)
tree01ff023b1f5f1c2316b44ea8eedafa083972f256 /bundles
parentbfc5b5ee4c106c77ce790bc008385e3f81a004a0 (diff)
downloadeclipse.platform.swt-44831be69304b66415d3d33a9acdebdcbb92d6e6.tar.gz
eclipse.platform.swt-44831be69304b66415d3d33a9acdebdcbb92d6e6.tar.xz
eclipse.platform.swt-44831be69304b66415d3d33a9acdebdcbb92d6e6.zip
revert getLineCount() change
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java
index 0db0af9652..001b2cb2e3 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java
@@ -650,7 +650,7 @@ public boolean getEditable () {
public int getLineCount () {
checkWidget();
if ((style & SWT.SINGLE) != 0) return 1;
- return ((NSTextView)view).textStorage().paragraphs().count() + 1;
+ return ((NSTextView)view).textStorage().paragraphs().count();
}
/**

Back to the top