Skip to content

Instantly share code, notes, and snippets.

@jpcima
Created September 11, 2019 19:18
Show Gist options
  • Save jpcima/d0cf7ae1d8f203e6b3e2e1e1ac3906df to your computer and use it in GitHub Desktop.
Save jpcima/d0cf7ae1d8f203e6b3e2e1e1ac3906df to your computer and use it in GitHub Desktop.
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