summaryrefslogtreecommitdiffstats
path: root/src/htmlgen.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-02-25 17:49:47 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-02-25 17:49:47 (GMT)
commit69fbf29b9b2be1bdf9132adb799f31ab343a642e (patch)
tree0673a1c66696ceb0da0191a0e834b85eef8c50a2 /src/htmlgen.cpp
parent863353b89b228b87789e6d6c9257605acd796fff (diff)
downloadDoxygen-69fbf29b9b2be1bdf9132adb799f31ab343a642e.zip
Doxygen-69fbf29b9b2be1bdf9132adb799f31ab343a642e.tar.gz
Doxygen-69fbf29b9b2be1bdf9132adb799f31ab343a642e.tar.bz2
Release-1.2.5-20010225
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r--src/htmlgen.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp
index aec995f..a0a46d7 100644
--- a/src/htmlgen.cpp
+++ b/src/htmlgen.cpp
@@ -275,9 +275,16 @@ void HtmlGenerator::writeStyleInfo(int part)
else // write user defined style sheet
{
QFileInfo cssfi(Config::htmlStyleSheet);
- startPlainFile(cssfi.fileName());
- t << fileToString(Config::htmlStyleSheet);
- endPlainFile();
+ if (!cssfi.exists() || !cssfi.isFile() || !cssfi.isReadable())
+ {
+ err("Error: style sheet %s does not exist or is not readable!", Config::htmlStyleSheet.data());
+ }
+ else
+ {
+ startPlainFile(cssfi.fileName());
+ t << fileToString(Config::htmlStyleSheet);
+ endPlainFile();
+ }
}
}
}