Code

Fix typo in an array causing a write off the end. Causes bug if no
authorbryce <bryce@users.sourceforge.net>
Sat, 22 Dec 2007 19:00:50 +0000 (19:00 +0000)
committerbryce <bryce@users.sourceforge.net>
Sat, 22 Dec 2007 19:00:50 +0000 (19:00 +0000)
sizes were loaded from the preferences file.  Closes LP: #178139.

src/dialogs/iconpreview.cpp

index e61b7d7f9c48a9c783c4a75c4e700d01bc59dc0c..3994ba454e6f098c0fcf96b9797ea996624539c3 100644 (file)
@@ -126,7 +126,7 @@ IconPreviewPanel::IconPreviewPanel() :
         sizes[1] = 24;
         sizes[2] = 32;
         sizes[3] = 48;
-        sizes[5] = 128;
+        sizes[4] = 128;
     }
 
     pixMem = new guchar*[numEntries];