Update of /var/cvs/applications/richtext/src/org/mmbase/richtext/processors/xml
In directory james.mmbase.org:/tmp/cvs-serv29167/processors/xml

Modified Files:
        Kupu.java 
Log Message:
if changes made, commit must be called


See also: 
http://cvs.mmbase.org/viewcvs/applications/richtext/src/org/mmbase/richtext/processors/xml


Index: Kupu.java
===================================================================
RCS file: 
/var/cvs/applications/richtext/src/org/mmbase/richtext/processors/xml/Kupu.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- Kupu.java   25 Sep 2008 10:17:28 -0000      1.5
+++ Kupu.java   25 Sep 2008 16:00:02 -0000      1.6
@@ -31,7 +31,7 @@
 /**
  * This implements 'Kupu' Mode of [EMAIL PROTECTED] MmxfSetString}.
  * @author Michiel Meeuwissen
- * @version $Id: Kupu.java,v 1.5 2008/09/25 10:17:28 michiel Exp $
+ * @version $Id: Kupu.java,v 1.6 2008/09/25 16:00:02 michiel Exp $
  */
 
 class Kupu {
@@ -426,11 +426,13 @@
         Node flash = cloud.getNode(nodeNumber);
         String klass = Util.getCssClass(a.getAttribute("class"), 
flashClasses);;
         String id = a.getAttribute("id");
+        boolean updated = false;
         {
             String heightAttr = a.getAttribute("height");
             if (! "".equals(heightAttr)) {
                 int height = Integer.parseInt(heightAttr);
                 flash.setValue("height", height);
+                updated = true;
             } else {
                 log.warn("No height found on " + XMLWriter.write(a));
             }
@@ -440,10 +442,14 @@
             if (! "".equals(widthAttr)) {
                 int width = Integer.parseInt(widthAttr);
                 flash.setValue("width", width);
+                updated = true;
             } else {
                 log.warn("No width found on " + XMLWriter.write(a));
             }
         }
+        if (updated) {
+            flash.commit();
+        }
 
 
         usedFlash.add(new Entry(id, flash));
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to