diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-03-15 20:28:49 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-03-15 20:28:49 (GMT) |
commit | 4277fc739591f50537756467fd97a02591ef7b64 (patch) | |
tree | dd566a20134a748441de164049c282e62d716054 /win/tkWinDialog.c | |
parent | 5907b6eb6d4e5059b8cb552e04023bb24e76795c (diff) | |
parent | 5d3696a737a0d6cbfc1c3eda16547cff2f9078d7 (diff) | |
download | tk-4277fc739591f50537756467fd97a02591ef7b64.zip tk-4277fc739591f50537756467fd97a02591ef7b64.tar.gz tk-4277fc739591f50537756467fd97a02591ef7b64.tar.bz2 |
Merge 8.6
Diffstat (limited to 'win/tkWinDialog.c')
-rw-r--r-- | win/tkWinDialog.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c index 11b556a..42a588b 100644 --- a/win/tkWinDialog.c +++ b/win/tkWinDialog.c @@ -2911,13 +2911,10 @@ Tk_MessageBoxObjCmd( flags |= icon | type | MB_TASKMODAL | MB_SETFOREGROUND; - tmpObj = messageObj ? Tcl_DuplicateObj(messageObj) - : Tcl_NewUnicodeObj(NULL, 0); + tmpObj = messageObj ? Tcl_DuplicateObj(messageObj) : Tcl_NewObj(); Tcl_IncrRefCount(tmpObj); if (detailObj) { - const Tcl_UniChar twoNL[] = { '\n', '\n' }; - - Tcl_AppendUnicodeToObj(tmpObj, twoNL, 2); + Tcl_AppendStringsToObj(tmpObj, "\n\n", NULL); Tcl_AppendObjToObj(tmpObj, detailObj); } |