From a4cbf12a3adf1d187432d0af94ad6928ea6074f2 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Fri, 25 Apr 2003 09:28:36 +0000 Subject: Correct a misalignment between the option array and the option offsets causing core dumps and a wrong behavior of scrollbars under Windows. --- generic/tkZinc.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'generic/tkZinc.c') diff --git a/generic/tkZinc.c b/generic/tkZinc.c index 4ed4a4f..23c4b47 100644 --- a/generic/tkZinc.c +++ b/generic/tkZinc.c @@ -186,10 +186,8 @@ static Tk_ConfigSpec config_specs[] = { Tk_Offset(ZnWInfo, font), 0, NULL}, {TK_CONFIG_CUSTOM, "-forecolor", "foreColor", "Foreground", "Black", Tk_Offset(ZnWInfo, fore_color), 0, &gradientOption}, -#ifndef _WIN32 {TK_CONFIG_BOOLEAN, "-fullreshape", "fullReshape", "FullReshape", "1", Tk_Offset(ZnWInfo, full_reshape), 0, NULL}, -#endif {TK_CONFIG_PIXELS, "-height", "height", "Height", "7c", Tk_Offset(ZnWInfo, opt_height), 0, NULL}, {TK_CONFIG_CUSTOM, "-highlightbackground", "highlightBackground", "HighlightBackground", @@ -212,10 +210,8 @@ static Tk_ConfigSpec config_specs[] = { {TK_CONFIG_FONT, "-maptextfont", "mapTextFont", "MapTextFont", "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*", Tk_Offset(ZnWInfo, map_text_font), 0, NULL}, -#ifdef OM {TK_CONFIG_INT, "-overlapmanager", "overlapManager", "OverlapManager", "1", Tk_Offset(ZnWInfo, om_group_id), 0, NULL}, -#endif {TK_CONFIG_INT, "-pickaperture", "pickAperture", "PickAperture", "1", Tk_Offset(ZnWInfo, pick_aperture), 0, NULL}, {TK_CONFIG_CUSTOM, "-relief", "relief", "Relief", @@ -5590,7 +5586,7 @@ Configure(Tcl_Interp *interp,/* Used for error reporting. */ #else CONST char **args2; #endif - + if (Tcl_SplitList(interp, wi->region, &argc2, &args2) != TCL_OK) { return TCL_ERROR; } @@ -5612,15 +5608,15 @@ Configure(Tcl_Interp *interp,/* Used for error reporting. */ ZnFree(args2); } } - + if (CONFIG_PROBE(SCROLL_REGION_SPEC) || CONFIG_PROBE(CONFINE_SPEC)) { SetOrigin(wi, wi->origin.x, wi->origin.y); SET(wi->flags, ZN_UPDATE_SCROLLBARS); } - + return TCL_OK; -} + } /* -- cgit v1.1