summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-05 21:18:58 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-05 21:18:58 (GMT)
commit9bca6671f1b75062855142650431b8e0536bc660 (patch)
tree70c8930f36a3f00f2464cf627ad4e4ffaf6ae271 /generic
parent3a773b761ea144b3ac99b683321b77dc29ac6b61 (diff)
parentd454776e552a10ca739f2608e45607d72f9cda2e (diff)
downloadtk-9bca6671f1b75062855142650431b8e0536bc660.zip
tk-9bca6671f1b75062855142650431b8e0536bc660.tar.gz
tk-9bca6671f1b75062855142650431b8e0536bc660.tar.bz2
Fix [4d0a6f32b7]: Unique behavior of some options in the message widget in 8.7/9.0
Diffstat (limited to 'generic')
-rw-r--r--generic/tkMessage.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/generic/tkMessage.c b/generic/tkMessage.c
index 2d2f73e..ec44fcb 100644
--- a/generic/tkMessage.c
+++ b/generic/tkMessage.c
@@ -547,17 +547,9 @@ MessageWorldChanged(
Tk_GetFontMetrics(msgPtr->tkfont, &fm);
if (msgPtr->padX < 0) {
msgPtr->padX = fm.ascent / 2;
- if (msgPtr->padXPtr) {
- Tcl_DecrRefCount(msgPtr->padXPtr);
- msgPtr->padXPtr = NULL;
- }
}
- if (msgPtr->padY == -1) {
+ if (msgPtr->padY < 0) {
msgPtr->padY = fm.ascent / 4;
- if (msgPtr->padYPtr) {
- Tcl_DecrRefCount(msgPtr->padYPtr);
- msgPtr->padYPtr = NULL;
- }
}
/*