File: 08_scale_by_placement.patch

package info (click to toggle)
xfig 1%3A3.2.8b-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 27,428 kB
  • sloc: ansic: 75,823; sh: 3,174; makefile: 303; javascript: 22; csh: 5
file content (29 lines) | stat: -rw-r--r-- 1,192 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Thomas Loimer <thomas.loimer@tuwien.ac.at>
Date: Sun, 9 Jan 2022 10:59:54 +0100
Origin: upstream, https://sourceforge.net/p/mcj/xfig/ci/92215fa
Subject: Correctly place the "Scale by %" value in the picture edit dialog
 The percent value right to the "Scale by %" button in the picture edit dialog
 would remain at its place when vertically enlarging the window. With this
 commit, the percent field now moves with the other fields.

--- a/src/e_edit.c
+++ b/src/e_edit.c
@@ -3,7 +3,7 @@
  * Copyright (c) 1985-1988 by Supoj Sutanthavibul
  * Parts Copyright (c) 1989-2015 by Brian V. Smith
  * Parts Copyright (c) 1991 by Paul King
- * Parts Copyright (c) 2016-2020 by Thomas Loimer
+ * Parts Copyright (c) 2016-2022 by Thomas Loimer
  *
  * Change function implemented by Frank Schmuck (schmuck@svax.cs.cornell.edu)
  * X version by Jon Tombs <jon@uk.ac.oxford.robots>
@@ -2002,6 +2002,9 @@ make_window_line(F_line *l)
 				below, percent_button,
 				(XtCallbackProc) 0, "100.0", 0.00001, 1000.0, 1.0, 45);
 	XtSetSensitive(percent, new_l->pic->hw_ratio ? True : False);
+	FirstArg(XtNtop, XtChainBottom);
+	NextArg(XtNbottom, XtChainBottom);
+	SetValues(percent);
 
 	break;
     }