]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listbox.cpp
Fixed handling of modal dialogs.
[wxWidgets.git] / src / msw / listbox.cpp
index df49c91cc6fb93438145134e397dea4baedf70e0..84e7896bdf2715c3788a4c2f4809c2144f42e207 100644 (file)
@@ -805,8 +805,9 @@ bool wxListBox::MSWOnDraw(WXDRAWITEMSTRUCT *item)
     wxListBoxItem *pItem = (wxListBoxItem *)data;
 
     wxDCTemp dc((WXHDC)pStruct->hDC);
-    wxRect rect(wxPoint(pStruct->rcItem.left, pStruct->rcItem.top),
-                wxPoint(pStruct->rcItem.right, pStruct->rcItem.bottom));
+    wxPoint pt1(pStruct->rcItem.left, pStruct->rcItem.top);
+    wxPoint pt2(pStruct->rcItem.right, pStruct->rcItem.bottom);
+    wxRect rect(pt1, pt2);
 
     return pItem->OnDrawItem(dc, rect,
                              (wxOwnerDrawn::wxODAction)pStruct->itemAction,