From: Frederik Gladhorn Date: Wed, 14 May 2014 11:39:16 +0000 (+0200) Subject: Fix copy and paste error X-Git-Tag: upstream/5.3.1~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6e751f8d7644ccad6afdbe931611030c3b5cc6d;p=platform%2Fupstream%2Fqtdeclarative.git 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 --- 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