summaryrefslogtreecommitdiffstats
path: root/libraries/qt4/patches/qt-everywhere-opensource-src-4.8.7-fix_pointer_comparison_to_0.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/qt4/patches/qt-everywhere-opensource-src-4.8.7-fix_pointer_comparison_to_0.patch')
-rw-r--r--libraries/qt4/patches/qt-everywhere-opensource-src-4.8.7-fix_pointer_comparison_to_0.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/libraries/qt4/patches/qt-everywhere-opensource-src-4.8.7-fix_pointer_comparison_to_0.patch b/libraries/qt4/patches/qt-everywhere-opensource-src-4.8.7-fix_pointer_comparison_to_0.patch
new file mode 100644
index 0000000000..b60b534902
--- /dev/null
+++ b/libraries/qt4/patches/qt-everywhere-opensource-src-4.8.7-fix_pointer_comparison_to_0.patch
@@ -0,0 +1,22 @@
+--- ./src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp
++++ ./src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp
+@@ -74,7 +74,7 @@
+ RefPtr<HTMLImageElement> image = adoptRef(new HTMLImageElement(imgTag, document));
+ if (optionalWidth)
+ image->setWidth(*optionalWidth);
+- if (optionalHeight > 0)
++ if (optionalHeight)
+ image->setHeight(*optionalHeight);
+ return image.release();
+ }
+--- ./tools/linguist/linguist/messagemodel.cpp
++++ ./tools/linguist/linguist/messagemodel.cpp
+@@ -183,7 +183,7 @@
+ if (ContextItem *c = one->findContext(oc->context())) {
+ for (int j = 0; j < oc->messageCount(); ++j) {
+ MessageItem *m = oc->messageItem(j);
+- if (c->findMessage(m->text(), m->comment()) >= 0)
++ if (c->findMessage(m->text(), m->comment()))
+ ++inBoth;
+ }
+ }