X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f02408ec96dbb43a505aa2b4781ac943a32772c..05a11043926e5770f7fa9e3512689cda3cf21349:/samples/oleauto 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 }