diff options
| author | Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> | 2019-02-16 10:36:57 +0000 |
|---|---|---|
| committer | Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> | 2019-02-16 10:36:57 +0000 |
| commit | 4b71bdcf8bd834b5f340026a050a3b3f48ae0791 (patch) | |
| tree | 4e51c54c8d5a95aee0984426f3c6bf30aad446b6 /src/ui/dialog/filedialogimpl-gtkmm.cpp | |
| parent | Code simplification using InkscapeApplication singleton. (diff) | |
| download | inkscape-4b71bdcf8bd834b5f340026a050a3b3f48ae0791.tar.gz inkscape-4b71bdcf8bd834b5f340026a050a3b3f48ae0791.zip | |
Fix preview for large file
Diffstat (limited to 'src/ui/dialog/filedialogimpl-gtkmm.cpp')
| -rw-r--r-- | src/ui/dialog/filedialogimpl-gtkmm.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/dialog/filedialogimpl-gtkmm.cpp b/src/ui/dialog/filedialogimpl-gtkmm.cpp index e37eed793..b2fa87fe2 100644 --- a/src/ui/dialog/filedialogimpl-gtkmm.cpp +++ b/src/ui/dialog/filedialogimpl-gtkmm.cpp @@ -444,7 +444,7 @@ void SVGPreview::showTooLarge(long fileLength) id="mountainDroplet"/> </g> <text xml:space="preserve" x="200" y="280" - style="font-size:20px;font-weight:bold;text-anchor:middle">%s</text> + style="font-size:20px;font-weight:bold;text-anchor:middle">%.1f MB</text> <text xml:space="preserve" x="200" y="360" style="font-size:20px;font-weight:bold;text-anchor:middle">%s</text> </svg> @@ -473,7 +473,6 @@ bool SVGPreview::set(Glib::ustring &fileName, int dialogType) return false; } - if (Glib::file_test(fileName, Glib::FILE_TEST_IS_DIR)) { showNoPreview(); return false; |
