[izpack-devel] Patch: InstallerGroupPanel reading description from variable not working

Markus Schlegel markus.schlegel at pulinco.com
Mon Dec 11 15:16:00 CET 2006


Due to the fact, that LocalDatabase.getString(key) returns the key if no
such value could be found,  the now patched line never get's a chance to
read the textfrom the defined variable.
This is now working again.
 
Index:
C:/deron/tools/IzPack_TRUNK/src/lib/com/izforge/izpack/panels/Installati
onGroupPanel.java
===================================================================
---
C:/deron/tools/IzPack_TRUNK/src/lib/com/izforge/izpack/panels/Installati
onGroupPanel.java (revision 1665)
+++
C:/deron/tools/IzPack_TRUNK/src/lib/com/izforge/izpack/panels/Installati
onGroupPanel.java (working copy)
@@ -383,7 +383,7 @@
             else
                 description = html;
         }
-        if (description == null)
+        if (description == null || key.equalsIgnoreCase(description))
//not a good idea, to return key if value not found...
             description = idata.getVariable(key);
         if (description == null)
             description = group + " installation";
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-devel/attachments/20061211/e223d332/attachment.html 


More information about the izpack-devel mailing list