hillion 2002/08/19 08:38:52
Modified: resources/org/apache/batik/apps/svgbrowser/resources
Main.properties
sources/org/apache/batik/bridge PaintServer.java
sources/org/apache/batik/css/engine/value LengthManager.java
Log:
- fixed stroke-dasharray bug,
- fixed CSS percentages bug.
Revision Changes Path
1.7 +3 -3
xml-batik/resources/org/apache/batik/apps/svgbrowser/resources/Main.properties
Index: Main.properties
===================================================================
RCS file:
/home/cvs/xml-batik/resources/org/apache/batik/apps/svgbrowser/resources/Main.properties,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Main.properties 21 Jun 2002 13:28:05 -0000 1.6
+++ Main.properties 19 Aug 2002 15:38:52 -0000 1.7
@@ -18,7 +18,7 @@
Frame.width = 800
Frame.height = 600
Frame.icon = resources/squiggleIcon.png
-Frame.title = Batik
+Frame.title = Squiggle
#
# Command-line options.
@@ -26,7 +26,7 @@
Command.header = \
\n\
-\tSVG browser - (C) Apache Software Foundation \n\
+\tSquiggle SVG browser - (C) Apache Software Foundation \n\
\t\thttp://xml.apache.org/batik\n
Command.syntax = \
1.7 +3 -4 xml-batik/sources/org/apache/batik/bridge/PaintServer.java
Index: PaintServer.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/PaintServer.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- PaintServer.java 31 Jul 2002 16:00:08 -0000 1.6
+++ PaintServer.java 19 Aug 2002 15:38:52 -0000 1.7
@@ -496,12 +496,11 @@
public static float [] convertStrokeDasharray(Value v) {
float [] dasharray = null;
if (v.getCssValueType() == CSSValue.CSS_VALUE_LIST) {
- ListValue l = (ListValue)v;
- int length = l.getLength();
+ int length = v.getLength();
dasharray = new float[length];
float sum = 0;
for (int i = 0; i < dasharray.length; ++i) {
- dasharray[i] = l.item(i).getFloatValue();
+ dasharray[i] = v.item(i).getFloatValue();
sum += dasharray[i];
}
if (sum == 0) {
1.3 +3 -3
xml-batik/sources/org/apache/batik/css/engine/value/LengthManager.java
Index: LengthManager.java
===================================================================
RCS file:
/home/cvs/xml-batik/sources/org/apache/batik/css/engine/value/LengthManager.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- LengthManager.java 5 Jun 2002 21:14:47 -0000 1.2
+++ LengthManager.java 19 Aug 2002 15:38:52 -0000 1.3
@@ -188,8 +188,8 @@
sm.putBlockHeightRelative(idx, true);
double w = ctx.getBlockWidth(elt);
double h = ctx.getBlockHeight(elt);
- fs = (float)(value.getFloatValue() * 100.0 /
- (Math.sqrt(w * w + h * h) / Math.sqrt(2)));
+ fs = (float)(value.getFloatValue() *
+ (Math.sqrt(w * w + h * h) / Math.sqrt(2)) / 100.0);
}
return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, fs);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]