diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2010-03-24 20:39:59 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2010-03-24 20:39:59 (GMT) |
commit | 707831ea739af5ae137c9cc1d04e3ffbbde11a6a (patch) | |
tree | 1e47a4443afb2ec61f032669050ee1b8834baa8d /src/dot.cpp | |
parent | 23b0a90048405fda4e4304052c3c1277c33a6a2b (diff) | |
download | Doxygen-707831ea739af5ae137c9cc1d04e3ffbbde11a6a.zip Doxygen-707831ea739af5ae137c9cc1d04e3ffbbde11a6a.tar.gz Doxygen-707831ea739af5ae137c9cc1d04e3ffbbde11a6a.tar.bz2 |
Release-1.6.3-20100324
Diffstat (limited to 'src/dot.cpp')
-rw-r--r-- | src/dot.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/dot.cpp b/src/dot.cpp index a951cf6..04be1c1 100644 --- a/src/dot.cpp +++ b/src/dot.cpp @@ -268,11 +268,12 @@ static void setDotFontPath(const char *path) ASSERT(g_dotFontPath.isEmpty()); g_dotFontPath = portable_getenv("DOTFONTPATH"); QCString newFontPath = Config_getString("DOT_FONTPATH"); - if (!newFontPath.isEmpty() && path) + QCString spath = path; + if (!newFontPath.isEmpty() && !spath.isEmpty()) { - newFontPath.prepend(path+portable_pathListSeparator()); + newFontPath.prepend(spath+portable_pathListSeparator()); } - else if (newFontPath.isEmpty() && path) + else if (newFontPath.isEmpty() && !spath.isEmpty()) { newFontPath=path; } @@ -286,7 +287,14 @@ static void setDotFontPath(const char *path) static void unsetDotFontPath() { - portable_setenv("DOTFONTPATH",g_dotFontPath); + if (g_dotFontPath.isEmpty()) + { + portable_unsetenv("DOTFONTPATH"); + } + else + { + portable_setenv("DOTFONTPATH",g_dotFontPath); + } g_dotFontPath=""; } |