[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: koffice/kpresenter
From:       David Faure <david () mandrakesoft ! com>
Date:       2002-12-10 17:24:40
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 10 December 2002 18:06, Nicolas Goutte wrote:
> +        KURL srcurl ( locate( "slideshow", filename, KPresenterFactory::global() ) );
> +        KURL desturl ( path + "/pics/" + filename );

Creating a URL from a path can only be done with KURL::setPath().
Doing it like the above breaks on non-latin1 systems.
Suggested code:

  KURL srcurl;
  srcurl.setPath( locate( "slideshow", filename, KPresenterFactory::global() ) );
  KURL desturl;
  desturl.setPath( path + "/pics/" + filename );

- -- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE99iNY72KcVAmwbhARAq61AJ0RPFvGi4zHnAL/c65X7H+9lCh+zACfaTkC
YySymnfTnh33ztDyutOYEXI=
=CyNN
-----END PGP SIGNATURE-----

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic