Patch level : 10.0 patch 467

Files correlati     : librerie per far funzionare lv2
Ricompilazione Demo : [ ]
Commento            :
Con questa correzione si evita di concatenare due slash ad un percorso se si parte da C:\ quando si utilizza il metodo path dei TFilename


git-svn-id: svn://10.65.10.50/trunk@19429 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca83 2009-10-13 13:34:23 +00:00
parent 215ba5dafc
commit 8c349fcd65

View File

@ -1204,7 +1204,7 @@ const char* TFilename::path() const
xvt_fsys_parse_pathname(_str, v, d, NULL, NULL, NULL);
TString& spark = get_tmp_string();
spark << v << d;
if (spark.not_empty())
if (spark.not_empty() && !is_slash(spark.right(1)[0]))
spark << SLASH;
return spark;
}