diff options
author | joye <joye> | 2014-04-02 21:05:40 (GMT) |
---|---|---|
committer | joye <joye> | 2014-04-02 21:05:40 (GMT) |
commit | 8caa381d7de028759d2df259c629989adb568e30 (patch) | |
tree | 8b83e16eef3b7059883cd7bad63bcab2c284d4f6 /src/bltGrElemOption.C | |
parent | e58952262da1371d725aaf2c2996edeec8cdb8c5 (diff) | |
download | blt-8caa381d7de028759d2df259c629989adb568e30.zip blt-8caa381d7de028759d2df259c629989adb568e30.tar.gz blt-8caa381d7de028759d2df259c629989adb568e30.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltGrElemOption.C')
-rw-r--r-- | src/bltGrElemOption.C | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/bltGrElemOption.C b/src/bltGrElemOption.C index c933e66..b7a2627 100644 --- a/src/bltGrElemOption.C +++ b/src/bltGrElemOption.C @@ -66,7 +66,8 @@ static int ValuesSetProc(ClientData clientData, Tcl_Interp* interp, { ElemValues** valuesPtrPtr = (ElemValues**)(widgRec + offset); *(double*)savePtr = *(double*)valuesPtrPtr; - Element* elemPtr = (Element*)widgRec; + ElementOptions* ops = (ElementOptions*)widgRec; + Element* elemPtr = ops->elemPtr; if (!valuesPtrPtr) return TCL_OK; @@ -256,7 +257,8 @@ int StyleSetProc(ClientData clientData, Tcl_Interp* interp, int offset, char* save, int flags) { Blt_Chain stylePalette = *(Blt_Chain*)(widgRec + offset); - Element* elemPtr = (Element*)(widgRec); + ElementOptions* ops = (ElementOptions*)(widgRec); + Element* elemPtr = ops->elemPtr; size_t size = (size_t)clientData; int objc; @@ -273,7 +275,7 @@ int StyleSetProc(ClientData clientData, Tcl_Interp* interp, } PenStyle* stylePtr = (PenStyle*)Blt_Chain_GetValue(link); - stylePtr->penPtr = NORMALPEN(elemPtr); + stylePtr->penPtr = NORMALPEN(ops); for (int ii = 0; ii<objc; ii++) { link = Blt_Chain_AllocLink(size); stylePtr = (PenStyle*)Blt_Chain_GetValue(link); @@ -286,7 +288,6 @@ int StyleSetProc(ClientData clientData, Tcl_Interp* interp, Blt_FreeStylePalette(stylePalette); return TCL_ERROR; } - Blt_Chain_LinkAfter(stylePalette, link, NULL); } |