From: JazzyNico Date: Sat, 13 Feb 2010 19:43:53 +0000 (+0100) Subject: File preview max size increased to 10Mio. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=63beb770d725fa5108b5af7b0e9ec5b6f508fa97;p=inkscape.git File preview max size increased to 10Mio. --- 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