Created
September 11, 2019 19:18
-
-
Save jpcima/d0cf7ae1d8f203e6b3e2e1e1ac3906df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/vstgui/lib/platform/common/generictextedit.cpp b/vstgui/lib/platform/common/generictextedit.cpp | |
index 67ada025..9bfa19a7 100644 | |
--- a/vstgui/lib/platform/common/generictextedit.cpp | |
+++ b/vstgui/lib/platform/common/generictextedit.cpp | |
@@ -353,9 +353,9 @@ CMouseEventResult STBTextEditView::onMouseDown (CFrame* frame, | |
const CButtonState& buttons) | |
{ | |
auto where = _where; | |
- if (auto parent = getParentView ()) | |
+ // if (auto parent = getParentView ()) | |
{ | |
- parent->translateToLocal (where); | |
+ /*parent->*/translateToLocal (where); | |
if (buttons.isLeftButton () && hitTest (where, buttons)) | |
{ | |
CPoint where2 (where); | |
@@ -377,9 +377,9 @@ CMouseEventResult STBTextEditView::onMouseMoved (CFrame* frame, | |
const CButtonState& buttons) | |
{ | |
auto where = _where; | |
- if (auto parent = getParentView ()) | |
+ // if (auto parent = getParentView ()) | |
{ | |
- parent->translateToLocal (where); | |
+ /*parent->*/translateToLocal (where); | |
if (buttons.isLeftButton () && hitTest (where, buttons)) | |
{ | |
CPoint where2 (where); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment