diff --git a/Pdf4QtLib/sources/pdfrenderer.cpp b/Pdf4QtLib/sources/pdfrenderer.cpp index cf64e44..22c878e 100644 --- a/Pdf4QtLib/sources/pdfrenderer.cpp +++ b/Pdf4QtLib/sources/pdfrenderer.cpp @@ -996,6 +996,14 @@ const PDFRendererInfo::Info& PDFRendererInfo::getHardwareAccelerationSupportedIn context.doneCurrent(); surface.destroy(); + versionString = versionString.trimmed(); + + int spaceIndex = versionString.indexOf(QChar(QChar::Space)); + if (spaceIndex != -1) + { + versionString = versionString.left(spaceIndex); + } + info.vendor = vendorString; info.renderer = rendererString; info.version = versionString;