X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1044a386f0521b9b805b142547783acb96d1a406..1dddf8389fef10a535dbcc96f5323799a852ade8:/src/common/prntbase.cpp diff --git a/src/common/prntbase.cpp b/src/common/prntbase.cpp index 5179a2a5b5..a71fcb47a7 100644 --- a/src/common/prntbase.cpp +++ b/src/common/prntbase.cpp @@ -386,12 +386,12 @@ void wxPreviewControlBar::CreateButtons() m_zoomControl = new wxChoice(this, wxID_PREVIEW_ZOOM, wxPoint(x, y), wxSize(100, -1)); - + // Yes, this look stupid, but this is because gcc gives up otherwise. int n = WXSIZEOF(choices); +// Someone is calling methods that do no exist in wxChoice!! So I'll just comment out for VA for now for ( int i = 0; i < n; i++ ) m_zoomControl->Append(choices[i]); - SetZoomControl(m_printPreview->GetZoom()); } @@ -402,6 +402,7 @@ void wxPreviewControlBar::SetZoomControl(int zoom) { char buf[20]; sprintf(buf, "%d%%", zoom); +// Someone is calling methods that do no exist in wxChoice!! So I'll just comment out for VA for now if (m_zoomControl) m_zoomControl->SetStringSelection(buf); } @@ -409,7 +410,7 @@ void wxPreviewControlBar::SetZoomControl(int zoom) int wxPreviewControlBar::GetZoomControl() { wxChar buf[20]; - if (m_zoomControl && (m_zoomControl->GetStringSelection() != _T(""))) + if (m_zoomControl && (m_zoomControl->GetStringSelection() != wxT(""))) { wxStrcpy(buf, m_zoomControl->GetStringSelection()); buf[wxStrlen(buf) - 1] = 0;