Revision: 19681
http://sourceforge.net/p/gate/code/19681
Author: markagreenwood
Date: 2016-10-15 08:44:40 +0000 (Sat, 15 Oct 2016)
Log Message:
-----------
fixed the weird issue where we lost a character of the filename each time we
resaved a corpus
Modified Paths:
--------------
gate/trunk/src/main/gate/gui/DocumentExportMenu.java
Modified: gate/trunk/src/main/gate/gui/DocumentExportMenu.java
===================================================================
--- gate/trunk/src/main/gate/gui/DocumentExportMenu.java 2016-10-15
01:23:21 UTC (rev 19680)
+++ gate/trunk/src/main/gate/gui/DocumentExportMenu.java 2016-10-15
08:44:40 UTC (rev 19681)
@@ -314,7 +314,11 @@
if(fileName.toLowerCase().endsWith(
"." + de.getDefaultExtension())) {
fileName =
- fileName.substring(0, fileName.length()
- 5);
+ fileName.substring(0,
+ fileName.length()
+ -
de.getDefaultExtension()
+ .length()
+ + 1);
}
if(usedFileNames.contains(fileName)) {
// name clash -> add unique ID
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs