lottieplayer: remove redundant calls. 77/186677/1
authorHermet Park <hermetpark@gmail.com>
Mon, 13 Aug 2018 10:07:35 +0000 (19:07 +0900)
committerHermet Park <hermetpark@gmail.com>
Mon, 13 Aug 2018 10:08:21 +0000 (19:08 +0900)
Those calls are useless on load time.

Change-Id: If69033eb244078c4f9b9258fcbc71eff17b894c9

src/lottie/lottieplayer.cpp

index f3ca324..7c97398 100644 (file)
@@ -119,10 +119,6 @@ bool LOTPlayerPrivate::setFilePath(std::string path)
     if (loader.load(path)) {
         mModel = loader.model();
         mCompItem = std::make_unique<LOTCompItem>(mModel.get());
-        if (!mSize.isEmpty()) {
-            setSize(mSize);
-            setPos(0);
-        }
         return true;
     }
     return false;