Package: xfig
Version: 1:3.2.5-rel-1
Tags: patch
Hello,
I wrote a small patch resolving the height computing of the MODEPANEL.
It appears that a previous patch localy define the number of switch in
the Drawing Panel to 17 probably to solve a disposition issue with the
Library switch (which take two slots).
But the overall number of switches remains unchanged and this cause
the occlusion of the bottom panel.
In the w_util.c file, the overall number of switches is increased by 2
(NUM_MODE_SW+2) to take into account that the Library switch needs
more slots.
To resolve the issue, I change the computing formula of the remaining
space in the MODPANEL to the canvas height minus the switches height.
I also remove the define which is not used anymore.
I hope this help!
Thanks,
Alexandre
ps : sorry if I did somethings wrong in this report, this is my first
contribution to Debian.
--- w_setup.c~
+++ w_setup.c
@@ -23,7 +23,6 @@
#include "w_setup.h"
#include "w_util.h"
-#define NUM_DRAW_SW 17 /* kludge - shouldn't have to edit this by hand
*/
int TOOL_WD, TOOL_HT;
int CMDFORM_WD, CMDFORM_HT = CMD_BUT_HT;
@@ -93,9 +92,7 @@
INDPANEL_WD = MODEPANEL_WD + CANVAS_WD + SIDERULER_WD;
/* space for both modepanel titles (Drawing modes and Editing modes) */
- MODEPANEL_SPACE = 1 + CANVAS_HT + RULER_WD -
- (MODE_SW_HT + INTERNAL_BW) * (ceil((double)NUM_DRAW_SW/SW_PER_ROW) +
- ceil((double)(NUM_MODE_SW-NUM_DRAW_SW)/SW_PER_ROW));
+ MODEPANEL_SPACE = 1 + CANVAS_HT - (MODE_SW_HT + INTERNAL_BW * 2 )
* ceil((double)(NUM_MODE_SW+2)/SW_PER_ROW); /* dupas - height
computation correction */
if (MODEPANEL_SPACE < 2)
MODEPANEL_SPACE = 2;
}
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]