From f6e751f8d7644ccad6afdbe931611030c3b5cc6d Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Wed, 14 May 2014 13:39:16 +0200 Subject: [PATCH] Fix copy and paste error Fix error 14 identified by static analysis from http://www.viva64.com/en/b/0251/ Change-Id: I5f0fa6bd1f14db8e4a86c27610666df6dfd60b1c Reviewed-by: Friedemann Kleint Reviewed-by: Lars Knoll --- src/quick/items/context2d/qquickcontext2d.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/quick/items/context2d/qquickcontext2d.cpp b/src/quick/items/context2d/qquickcontext2d.cpp index 2f7c09a..29e83e8 100644 --- a/src/quick/items/context2d/qquickcontext2d.cpp +++ b/src/quick/items/context2d/qquickcontext2d.cpp @@ -1774,10 +1774,12 @@ QV4::ReturnedValue QQuickJSContext2DPrototype::method_createPattern(QV4::CallCon pattern->patternRepeatY = true; } else if (repetition == QStringLiteral("repeat-x")) { pattern->patternRepeatX = true; + pattern->patternRepeatY = false; } else if (repetition == QStringLiteral("repeat-y")) { + pattern->patternRepeatX = false; pattern->patternRepeatY = true; } else if (repetition == QStringLiteral("no-repeat")) { - pattern->patternRepeatY = false; + pattern->patternRepeatX = false; pattern->patternRepeatY = false; } else { //TODO: exception: SYNTAX_ERR -- 2.7.4