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
This commit is contained in:
Vadim Zeitlin 2010-11-26 13:31:07 +00:00
parent d3ffaafb37
commit 9c1f960fac
4 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -635,7 +635,7 @@ bool wxTIFFHandler::DoCanRead( wxInputStream& stream )
micro;
const wxString ver(::TIFFGetVersion());
if ( wxSscanf(ver, "LIBTIFF, Version %d.%d.%d", &major, &micro, &micro) != 3 )
if ( wxSscanf(ver, "LIBTIFF, Version %d.%d.%d", &major, &minor, &micro) != 3 )
{
wxLogDebug("Unrecognized libtiff version string \"%s\"", ver);

View File

@ -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

View File

@ -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