You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by de...@apache.org on 2002/06/17 22:17:02 UTC
cvs commit: xml-batik/sources/org/apache/batik/gvt/renderer StaticRenderer.java
deweese 2002/06/17 13:17:02
Modified: sources/org/apache/batik/gvt UpdateTracker.java
sources/org/apache/batik/gvt/renderer StaticRenderer.java
Log:
1) Fixed PR 9276 - specifically bounds of parent were not properly
updated when they are changed by a change in a child node.
PR: 9276
Revision Changes Path
1.12 +10 -5 xml-batik/sources/org/apache/batik/gvt/UpdateTracker.java
Index: UpdateTracker.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/gvt/UpdateTracker.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- UpdateTracker.java 17 Apr 2002 12:49:00 -0000 1.11
+++ UpdateTracker.java 17 Jun 2002 20:17:02 -0000 1.12
@@ -99,11 +99,16 @@
if (gn == null)
break; // We reached the top of the tree
- if (dirtyNodes.get(gn.getWeakReference()) != null)
+ gnWRef = gn.getWeakReference();
+
+ if (dirtyNodes.containsKey(gnWRef))
break; // We already have the parent in the list of
- // dirty nodes. The following if (gn == null)
- // makes sure we do not add this child's
- // dirty areas.
+ // dirty nodes. so let it handle this...
+
+ if (nodeBounds.containsKey(gnWRef)) {
+ // Update the bounds in the nodeBounds array
+ nodeBounds.put(gnWRef, gn.getBounds());
+ }
AffineTransform at = gn.getTransform();
1.25 +3 -5 xml-batik/sources/org/apache/batik/gvt/renderer/StaticRenderer.java
Index: StaticRenderer.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/gvt/renderer/StaticRenderer.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- StaticRenderer.java 5 Jun 2002 21:14:48 -0000 1.24
+++ StaticRenderer.java 17 Jun 2002 20:17:02 -0000 1.25
@@ -300,15 +300,13 @@
if (isDoubleBuffered)
return;
- WritableRaster syncRaster;
- ColorModel cm;
updateWorkingBuffers();
if ((rootCR == null) ||
(workingBaseRaster == null))
return;
- cm = rootCR.getColorModel();
- syncRaster = workingBaseRaster;
+ ColorModel cm = rootCR.getColorModel();
+ WritableRaster syncRaster = workingBaseRaster;
// Ensure only one thread works on baseRaster at a time...
synchronized (syncRaster) {
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org