From 6ce6982407289e5ffa64fa561c05610b85f4ca54 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 15 Oct 2003 10:59:40 +0000 Subject: [PATCH] Patch level : 2.0 602 Files correlati : tutti Ricompilazione Demo : [ ] Commento : Corretto errore di inizializzazione librerie git-svn-id: svn://10.65.10.50/trunk@11498 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/strings.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/include/strings.cpp b/include/strings.cpp index c0eb89dc2..ef7defc79 100755 --- a/include/strings.cpp +++ b/include/strings.cpp @@ -1297,12 +1297,15 @@ bool TFilename::custom_path(const char* path_list) if (!is_absolute_path()) { TToken_string pl = path_list; - if (pl.empty_items()) + if (pl.empty()) { - pl = firm2dir(prefix().get_codditta()); - pl << SLASH << "custom"; - pl.add(firm2dir(-1)); - pl << "custom"; + if (prefix_valid()) + { + pl = firm2dir(prefix().get_codditta()); + pl << SLASH << "custom"; + pl.add(firm2dir(-1)); + pl << "custom"; + } pl.add("custom"); } const TString fname = name();