X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8d7dafc91ad68448a481b78df798a7bc85a92a60..304e5625e5dd63f0234b054bb3eba061ee33f54e:/samples/oleauto/oleauto.cpp diff --git a/samples/oleauto/oleauto.cpp b/samples/oleauto/oleauto.cpp index 05e9da16ad..b4021b93ae 100644 --- a/samples/oleauto/oleauto.cpp +++ b/samples/oleauto/oleauto.cpp @@ -211,10 +211,12 @@ void MyFrame::OnTest(wxCommandEvent& WXUNUSED(event)) wxMessageBox("Could not set active cell value."); return; } - if (!excelObject.PutProperty("ActiveCell.Font.Bold", (bool) TRUE)) +#ifdef HAVE_BOOL + if (!excelObject.PutProperty("ActiveCell.Font.Bold", wxVariant((bool) TRUE)) ) { wxMessageBox("Could not put Bold property to active cell."); return; } +#endif }