Revision: 7389
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=7389&view=rev
Author:   dominikoeo
Date:     2012-06-17 19:06:34 +0000 (Sun, 17 Jun 2012)
Log Message:
-----------
- bug #3054895: the column reported by LanguageTool
  was sometimes wrong when error span the new line.

Modified Paths:
--------------
    trunk/JLanguageTool/src/java/org/languagetool/JLanguageTool.java

Modified: trunk/JLanguageTool/src/java/org/languagetool/JLanguageTool.java
===================================================================
--- trunk/JLanguageTool/src/java/org/languagetool/JLanguageTool.java    
2012-06-17 19:01:45 UTC (rev 7388)
+++ trunk/JLanguageTool/src/java/org/languagetool/JLanguageTool.java    
2012-06-17 19:06:34 UTC (rev 7389)
@@ -637,7 +637,7 @@
     if (lastLineBreakPosInError == -1) {
       endColumn = sentencePartToEndOfError.length() + columnCount + 1;
     } else {
-      endColumn = sentencePartToEndOfError.length() - lastLineBreakPos;
+      endColumn = sentencePartToEndOfError.length() - lastLineBreakPosInError;
     }
     final int lineBreaksToError = countLineBreaks(sentencePartToError);
     final int lineBreaksToEndOfError = 
countLineBreaks(sentencePartToEndOfError);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to