X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fevents%2Fgesture.cpp;h=0ceaadf0022a94edf336fc762df18fa82a74f566;hb=0e74051aa807d4db3a79a893e69f033c73a3d392;hp=31c3b253e93a93b42fef703192ae76e1d4a75f8d;hpb=a5593b876d380b67cd03b20acb577e917c0f45a2;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/events/gesture.cpp b/dali/public-api/events/gesture.cpp index 31c3b25..0ceaadf 100644 --- a/dali/public-api/events/gesture.cpp +++ b/dali/public-api/events/gesture.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2016 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,9 +30,12 @@ Gesture::Gesture( const Gesture& rhs ) Gesture& Gesture::operator=( const Gesture& rhs ) { - type = rhs.type; - state = rhs.state; - time = rhs.time; + if( this != &rhs ) + { + type = rhs.type; + state = rhs.state; + time = rhs.time; + } return *this; }