From 8eb53b086003e7868c9448417d74565ebd806ed2 Mon Sep 17 00:00:00 2001 From: Kevin Walzer Date: Tue, 7 Aug 2012 21:49:44 +0000 Subject: Fix regression in cutting/pasting text; thanks to Adrian Robert for patch --- macosx/tkMacOSXEmbed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v0.12