From 9c1f960facd309385710af076b1f579aad9a28ef Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 26 Nov 2010 13:31:07 +0000 Subject: [PATCH] Small bug fixes for GetLibraryVersionInfo() changes. Fix the minor version determination for libtiff which was done wrongly by r66259 and provide a properly formatted description for Scintilla version. See #12690. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/stc/stc.h | 1 + src/common/imagtiff.cpp | 2 +- src/stc/stc.cpp | 2 +- src/stc/stc.cpp.in | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/wx/stc/stc.h b/include/wx/stc/stc.h index fbd65e7bad..7e314a10f9 100644 --- a/include/wx/stc/stc.h +++ b/include/wx/stc/stc.h @@ -38,6 +38,7 @@ #include "wx/control.h" #include "wx/dnd.h" #include "wx/stopwatch.h" +#include "wx/versioninfo.h" #include "wx/textentry.h" #if wxUSE_TEXTCTRL diff --git a/src/common/imagtiff.cpp b/src/common/imagtiff.cpp index 5a5c6cb5f9..5d8476daec 100644 --- a/src/common/imagtiff.cpp +++ b/src/common/imagtiff.cpp @@ -635,7 +635,7 @@ bool wxTIFFHandler::DoCanRead( wxInputStream& stream ) micro; const wxString ver(::TIFFGetVersion()); - if ( wxSscanf(ver, "LIBTIFF, Version %d.%d.%d", &major, µ, µ) != 3 ) + if ( wxSscanf(ver, "LIBTIFF, Version %d.%d.%d", &major, &minor, µ) != 3 ) { wxLogDebug("Unrecognized libtiff version string \"%s\"", ver); diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index 0e8c6206ac..b0a98e41ee 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -4620,7 +4620,7 @@ wxStyledTextEvent::wxStyledTextEvent(const wxStyledTextEvent& event): /*static*/ wxVersionInfo wxStyledTextCtrl::GetLibraryVersionInfo() { - return wxVersionInfo("Scintilla", 2, 3); + return wxVersionInfo("Scintilla", 2, 3, 0, "Scintilla 2.03"); } #endif // wxUSE_STC diff --git a/src/stc/stc.cpp.in b/src/stc/stc.cpp.in index f5c8d79620..2dfa4ec02a 100644 --- a/src/stc/stc.cpp.in +++ b/src/stc/stc.cpp.in @@ -1120,7 +1120,7 @@ wxStyledTextEvent::wxStyledTextEvent(const wxStyledTextEvent& event): /*static*/ wxVersionInfo wxStyledTextCtrl::GetLibraryVersionInfo() { - return wxVersionInfo("Scintilla", 2, 3); + return wxVersionInfo("Scintilla", 2, 3, 0, "Scintilla 2.03"); } #endif // wxUSE_STC -- 2.47.2