aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-04-07 17:08:12 +1000
committerNeil <nyamatongwe@gmail.com>2017-04-07 17:08:12 +1000
commit2e3803c65ec0a44bfef80ef9ec1014637a6a3781 (patch)
tree88118c0b95aee75d15c510fb8a28018dc400acdb
parent31b76af68badad3cb5d65b435b27760d65a9767a (diff)
downloadscintilla-mirror-2e3803c65ec0a44bfef80ef9ec1014637a6a3781.tar.gz
Allowing assigning Windows and ensure cursorLast is initialized.
-rw-r--r--include/Platform.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/Platform.h b/include/Platform.h
index 48ee720ca..411d42a03 100644
--- a/include/Platform.h
+++ b/include/Platform.h
@@ -363,6 +363,14 @@ public:
virtual ~Window();
Window &operator=(WindowID wid_) {
wid = wid_;
+ cursorLast = cursorInvalid;
+ return *this;
+ }
+ Window &operator=(const Window &other) {
+ if (this != &other) {
+ wid = other.wid;
+ cursorLast = other.cursorLast;
+ }
return *this;
}
WindowID GetID() const { return wid; }