/[pcsx2_0.9.7]/trunk/pcsx2/gui/MSWstuff.cpp
ViewVC logotype

Diff of /trunk/pcsx2/gui/MSWstuff.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/pcsx2/gui/MSWstuff.cpp	2010/12/23 11:48:33	279
+++ trunk/pcsx2/gui/MSWstuff.cpp	2010/12/23 12:02:12	280
@@ -39,9 +39,12 @@
 	// way over generous.  This little bit of Win32-specific code ensures proper icon spacing, scaled
 	// to the size of the frame's ideal width.
 
-	ListView_SetIconSpacing( (HWND)listbook.GetListView()->GetHWND(),
-		(width / listbook.GetPageCount()) - 4, g_Conf->Listbook_ImageSize+32		// y component appears to be ignored
-	);
+	if (listbook.GetPageCount())
+	{
+		ListView_SetIconSpacing( (HWND)listbook.GetListView()->GetHWND(),
+			(width / listbook.GetPageCount()) - 4, g_Conf->Listbook_ImageSize+32		// y component appears to be ignored
+		);
+	}
 #endif
 }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22