diff options
author | Kevin Walzer <kw@codebykevin.com> | 2012-08-07 21:49:44 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2012-08-07 21:49:44 (GMT) |
commit | 8eb53b086003e7868c9448417d74565ebd806ed2 (patch) | |
tree | 9966d042b4089507179f69495dfbf7cc77a0777e /macosx/tkMacOSXEmbed.c | |
parent | f531aed3d3a538cc2ea2614e6c590813fa85c008 (diff) | |
download | tk-8eb53b086003e7868c9448417d74565ebd806ed2.zip tk-8eb53b086003e7868c9448417d74565ebd806ed2.tar.gz tk-8eb53b086003e7868c9448417d74565ebd806ed2.tar.bz2 |
Fix regression in cutting/pasting text; thanks to Adrian Robert for patch
Diffstat (limited to 'macosx/tkMacOSXEmbed.c')
-rw-r--r-- | macosx/tkMacOSXEmbed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXEmbed.c b/macosx/tkMacOSXEmbed.c index d6ce254..354a231 100644 --- a/macosx/tkMacOSXEmbed.c +++ b/macosx/tkMacOSXEmbed.c @@ -157,7 +157,7 @@ TkpMakeWindow( macWin->xOff = 0; macWin->yOff = 0; macWin->toplevel = macWin; - } else { + } else if (winPtr->parentPtr) { macWin->xOff = winPtr->parentPtr->privatePtr->xOff + winPtr->parentPtr->changes.border_width + winPtr->changes.x; |