You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by de...@apache.org on 2005/12/14 03:23:28 UTC
svn commit: r356714 -
/xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java
Author: deweese
Date: Tue Dec 13 18:23:23 2005
New Revision: 356714
URL: http://svn.apache.org/viewcvs?rev=356714&view=rev
Log:
Fix for update of location bar(?)
Modified:
xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java
Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java?rev=356714&r1=356713&r2=356714&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java Tue Dec 13 18:23:23 2005
@@ -816,17 +816,18 @@
}
if (st != null) {
+ String fi = svgCanvas.getFragmentIdentifier();
if (svgDocument != null) {
ParsedURL docPURL
= new ParsedURL(svgDocument.getURL());
ParsedURL purl = new ParsedURL(docPURL, st);
- String fi = svgCanvas.getFragmentIdentifier();
fi = (fi == null) ? "" : fi;
if (docPURL.equals(purl) && t.equals(fi)) {
return;
}
}
if (t.length() != 0) {
+ st = st.substring(0, st.length()-(fi.length()+1));
st += "#" + t;
}
locationBar.setText(st);
@@ -2336,6 +2337,7 @@
if (s.indexOf("#") != -1) {
localHistory.update(s);
+ locationBar.setText(s);
application.addVisitedURI(s);
backAction.update();
forwardAction.update();