From 48292d14710e770f53acafaa82423605c93f4b32 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 15 Apr 2015 12:14:09 -0400 Subject: [PATCH] Fixed the weird 32-bit Linux/64-bit OpenBSD crash. --- label_unix.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/label_unix.c b/label_unix.c index 5eb98177..1f950d30 100644 --- a/label_unix.c +++ b/label_unix.c @@ -20,10 +20,7 @@ uiControl *uiNewLabel(const char *text) c = uiUnixNewControl(GTK_TYPE_LABEL, FALSE, FALSE, "label", text, - // TODO TODO TODO TODO TODO - // the presence of this property leads to a segfault on 32-bit linux builds AND 64-bit openbsd builds - // is it just this property? or is it more than one property at all? and why? - "xalign", 0, + "xalign", 0.0, // note: must be a float constant, otherwise the ... will turn it into an int and we get segfaults on some platforms (thanks ebassi in irc.gimp.net/#gtk+) // TODO yalign 0? NULL);