Code

File preview max size increased to 10Mio.
authorJazzyNico <nicoduf@yahoo.fr>
Sat, 13 Feb 2010 19:43:53 +0000 (20:43 +0100)
committerJazzyNico <nicoduf@yahoo.fr>
Sat, 13 Feb 2010 19:43:53 +0000 (20:43 +0100)
src/ui/dialog/filedialogimpl-gtkmm.cpp
src/ui/dialog/filedialogimpl-win32.cpp

index e650cf842cc286695a0fc8c02504fd746772fd60..916e3ec97f82dc9f98d3c3839592bbdf846a4ee7 100644 (file)
@@ -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);
index 529288031f560f1069470f64623d8af96788040a..c3889a62d93e9dcfa44c70d5e36def7ee0d0e57c 100644 (file)
@@ -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