Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.