From d1a45e650eb71d202b7d67680e3a39bff235584b Mon Sep 17 00:00:00 2001 From: emb <> Date: Wed, 21 Oct 2015 20:56:13 -0500 Subject: [PATCH] Fixed another ScrollinList copy constructor issue (selecting wrong item) --- RetroFE/Source/Graphics/Component/ScrollingList.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RetroFE/Source/Graphics/Component/ScrollingList.cpp b/RetroFE/Source/Graphics/Component/ScrollingList.cpp index b964b0e..589f3b0 100644 --- a/RetroFE/Source/Graphics/Component/ScrollingList.cpp +++ b/RetroFE/Source/Graphics/Component/ScrollingList.cpp @@ -52,6 +52,7 @@ ScrollingList::ScrollingList(Configuration &c, , focus_(false) , itemIndex_(0) , componentIndex_(0) + , selectedOffsetIndex_(0) , scrollStopRequested_(true) , notifyAllRequested_(false) , currentScrollDirection_(ScrollDirectionIdle) @@ -77,6 +78,7 @@ ScrollingList::ScrollingList(const ScrollingList ©) , focus_(false) , itemIndex_(0) , componentIndex_(0) + , selectedOffsetIndex_(copy.selectedOffsetIndex_) , scrollStopRequested_(true) , notifyAllRequested_(false) , currentScrollDirection_(ScrollDirectionIdle)