--- a/src/toolsets/viewtoolset.cpp Sat Mar 24 13:42:34 2018 +0200 +++ b/src/toolsets/viewtoolset.cpp Sat Mar 24 13:48:50 2018 +0200 @@ -116,7 +116,7 @@ const char* imageFormats = "PNG images (*.png);;JPG images (*.jpg);;BMP images (*.bmp);;" "PPM images (*.ppm);;X11 Bitmaps (*.xbm);;X11 Pixmaps (*.xpm);;All Files (*.*)"; QImage image = m_window->renderer()->screenCapture(); - QString root = Basename (currentDocument()->name()); + QString root = QFileInfo {currentDocument()->name()}.fileName(); if (root.right (4) == ".dat") root.chop (4);