From 7f6dd547b889a03f46d5a84544f1c292e7881010 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