record scrollpane name
This commit is contained in:
@@ -45,6 +45,9 @@ void cScrollbar::setPosition(long newPos, bool record) {
|
|||||||
if(record && recording){
|
if(record && recording){
|
||||||
std::map<std::string,std::string> info;
|
std::map<std::string,std::string> info;
|
||||||
info["name"] = name;
|
info["name"] = name;
|
||||||
|
if(info["name"].empty() && pane != nullptr){
|
||||||
|
info["name"] = pane->getName();
|
||||||
|
}
|
||||||
// Might as well record newPos before it gets clamped, so replays will verify that clamping
|
// Might as well record newPos before it gets clamped, so replays will verify that clamping
|
||||||
// still works.
|
// still works.
|
||||||
info["newPos"] = boost::lexical_cast<std::string>(newPos);
|
info["newPos"] = boost::lexical_cast<std::string>(newPos);
|
||||||
|
Reference in New Issue
Block a user