From 63beb770d725fa5108b5af7b0e9ec5b6f508fa97 Mon Sep 17 00:00:00 2001 From: JazzyNico Date: Sat, 13 Feb 2010 20:43:53 +0100 Subject: [PATCH] File preview max size increased to 10Mio. --- src/ui/dialog/filedialogimpl-gtkmm.cpp | 2 +- src/ui/dialog/filedialogimpl-win32.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/dialog/filedialogimpl-gtkmm.cpp b/src/ui/dialog/filedialogimpl-gtkmm.cpp index e650cf842..916e3ec97 100644 --- a/src/ui/dialog/filedialogimpl-gtkmm.cpp +++ b/src/ui/dialog/filedialogimpl-gtkmm.cpp @@ -521,7 +521,7 @@ bool SVGPreview::set(Glib::ustring &fileName, int dialogType) return FALSE; } long fileLen = info.st_size; - if (fileLen > 0x150000L) + if (fileLen > 0xA00000L) { showingNoPreview = false; showTooLarge(fileLen); diff --git a/src/ui/dialog/filedialogimpl-win32.cpp b/src/ui/dialog/filedialogimpl-win32.cpp index 529288031..c3889a62d 100644 --- a/src/ui/dialog/filedialogimpl-win32.cpp +++ b/src/ui/dialog/filedialogimpl-win32.cpp @@ -61,7 +61,7 @@ namespace Dialog const int PreviewWidening = 150; const char PreviewWindowClassName[] = "PreviewWnd"; -const unsigned long MaxPreviewFileSize = 1344; // kB +const unsigned long MaxPreviewFileSize = 10240; // kB #define IDC_SHOW_PREVIEW 1000 -- 2.30.2