summaryrefslogtreecommitdiffstats
path: root/src/dot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dot.cpp')
-rw-r--r--src/dot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dot.cpp b/src/dot.cpp
index 8deb0d8..6a38a6e 100644
--- a/src/dot.cpp
+++ b/src/dot.cpp
@@ -354,11 +354,11 @@ void writeDotImageMapFromFile(std::ostream &t,
}
else // bitmap graphics
{
- std::stringstream tt;
+ std::ostringstream tt(std::ios_base::ate);
t << "<img src=\"" << relPath << imgName << "\" alt=\""
<< imgName << "\" border=\"0\" usemap=\"#" << mapName << "\"/>\n";
DotFilePatcher::convertMapFile(tt, absOutFile, relPath ,TRUE, context);
- if (tt.tellg()>0)
+ if (tt.tellp()>0)
{
t << "<map name=\"" << mapName << "\" id=\"" << mapName << "\">";
t << tt.str();