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:
parent
d3ffaafb37
commit
9c1f960fac
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user