summaryrefslogtreecommitdiff
path: root/graphics/asymptote/errormsg.cc
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/errormsg.cc')
-rw-r--r--graphics/asymptote/errormsg.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/asymptote/errormsg.cc b/graphics/asymptote/errormsg.cc
index afa307283b..637f6ae50f 100644
--- a/graphics/asymptote/errormsg.cc
+++ b/graphics/asymptote/errormsg.cc
@@ -27,7 +27,7 @@ ostream& operator<< (ostream& out, const position& pos)
string filename=pos.file->name();
if(filename != "-" && !settings::getSetting<bool>("quiet")) {
- std::ifstream fin(pos.file->name().c_str());
+ std::ifstream fin(filename.c_str());
string s;
size_t count=pos.line;
while(count > 0 && getline(fin,s)) {