Hi Dimitry,

I've undone your changes for the following reason:

if you insert an image in FM into SimplyHTML that contains spaces in the
way before you changed Tools, you got:

<html>
  <head>
    <style type="text/css">
      <!--
        p { margin-top: 0 }
        body { font-size: 12pt; color: #000000; font-family: SansSerif }
      -->
    </style>
   
  </head>
  <body>
    <p>
      <img src="../bilder/051212_Laptop/dsc%2000083.jpg">
     
    </p>
  </body>
</html>

but the image isn't displayed. But, it *is* displayed, if you save this
document as test.html to the place, where the map is and open this with
SimplyHTML (last CVS version) directly, you get the image properly
displayed. So, I guess, that it is a different problem. And, in fact, it
is a problem of SimplyHTML (or perhaps, better of the integration of
SimplyHTML in FreeMind) and not of FreeMind.

Best regards, Chris


Dimitry Polivaev schrieb:
> Update of /cvsroot/freemind/freemind/freemind/main
> In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv32212
>
> Modified Files:
>       Tag: fm_060405_integration
>       Tools.java 
> Log Message:
> Tools.URL fileToUrl(File pFile) :
> Images referenced from documents with bases given by 
> pFile.toURI().toURL() are  not shown in SimplyHTML
> (bug [ freemind-Bugs-2019223 ] Images are not shown in the Notes view)
> => the old method pFile.toURL() must be used again.
>
> Index: Tools.java
> ===================================================================
> RCS file: /cvsroot/freemind/freemind/freemind/main/Tools.java,v
> retrieving revision 1.17.18.9.2.35
> retrieving revision 1.17.18.9.2.36
> diff -C2 -d -r1.17.18.9.2.35 -r1.17.18.9.2.36
> *** Tools.java        13 Jul 2008 10:04:00 -0000      1.17.18.9.2.35
> --- Tools.java        17 Jul 2008 18:16:38 -0000      1.17.18.9.2.36
> ***************
> *** 1281,1296 ****
>       public static final String JAVA_VERSION = 
> System.getProperty("java.version");
>       public static URL fileToUrl(File pFile) throws MalformedURLException {
> !             // fix for java1.4 and java5 only.
> !             if (JAVA_VERSION.compareTo("1.6.0") < 0) {
> !                     return pFile.toURL();
> !             }
> !             return pFile.toURI().toURL();
>       }
>       public static File urlToFile(URL pUrl) throws URISyntaxException{
> !             // fix for java1.4 and java5 only.
> !             if (JAVA_VERSION.compareTo("1.6.0") < 0) {
> !                     return new File (urlGetFile(pUrl));
> !             }
> !             return new File(new URI (pUrl.toString()));
>       }
>   }
> --- 1281,1306 ----
>       public static final String JAVA_VERSION = 
> System.getProperty("java.version");
>       public static URL fileToUrl(File pFile) throws MalformedURLException {
> !     // Dimitry: images referenced from documents with bases given by 
> !     //              pFile.toURI().toURL() are  not shown in SimplyHTML
> !     // (bug [ freemind-Bugs-2019223 ] Images are not shown in the Notes 
> view)
> !     // => the old method pFile.toURL() MUST be used.                
> !             return pFile.toURL();
> ! // correctly for URLs returned by pFile.toURI().toURL().
> ! // As a consequence                 
> ! //          // fix for java1.4 and java5 only.
> ! //          if (JAVA_VERSION.compareTo("1.6.0") < 0) {
> ! //                  return pFile.toURL();
> ! //          }
> ! //          return pFile.toURI().toURL();
>       }
>       public static File urlToFile(URL pUrl) throws URISyntaxException{
> !     // Dimitry: File(new URI (pUrl.toString())) does not work for
> !     // URL returned by File.toURL()
> !             return new File (urlGetFile(pUrl));
> ! //          // fix for java1.4 and java5 only.
> ! //          if (JAVA_VERSION.compareTo("1.6.0") < 0) {
> ! //                  return new File (urlGetFile(pUrl));
> ! //          }
> ! //          return new File(new URI (pUrl.toString()));
>       }
>   }
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Freemind-cvslog mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/freemind-cvslog
>
>   

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Freemind-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemind-developer

Reply via email to