Skip to Content.
Sympa Menu

idok-commit - [idok-commit] idok commit r140 - trunk/java/ch/idok/qtgui

idok-commit AT lists.psi.ch

Subject: Commit emails of the iDok project

List archive

[idok-commit] idok commit r140 - trunk/java/ch/idok/qtgui


Chronological Thread 
  • From: "Apache" <apache AT savannah.psi.ch>
  • To: idok-commit AT lists.psi.ch
  • Subject: [idok-commit] idok commit r140 - trunk/java/ch/idok/qtgui
  • Date: Mon, 7 Jul 2008 16:58:32 +0200
  • List-archive: <https://lists.web.psi.ch/pipermail/idok-commit/>
  • List-id: Commit emails of the iDok project <idok-commit.lists.psi.ch>

Author: huebner AT PSI.CH
Date: Mon Jul 7 16:58:31 2008
New Revision: 140

Log:
Fixed a bug where certain filenames could cause an exception.

Modified:
trunk/java/ch/idok/qtgui/PreviewWidget.java

Modified: trunk/java/ch/idok/qtgui/PreviewWidget.java
==============================================================================
--- trunk/java/ch/idok/qtgui/PreviewWidget.java (original)
+++ trunk/java/ch/idok/qtgui/PreviewWidget.java Mon Jul 7 16:58:31 2008
@@ -276,7 +276,7 @@
setCursor(BUSYCURSOR);

String ext = new String("");
- if ((name.length() >= 2) && name.contains(".")) {
+ if ((name.split("\\.").length - 1) >= 0 &&
((name.split("\\.")[name.split("\\.").length - 1].length()) >=1 )) {
ext = name.split("\\.")[name.split("\\.").length - 1];
ext = ext.toLowerCase();
}



  • [idok-commit] idok commit r140 - trunk/java/ch/idok/qtgui, Apache, 07/07/2008

Archive powered by MHonArc 2.6.19.

Top of Page