LessTif HID: XmScrollBar Warnings
Bug #1670023 reported by
Chad Parker
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pcb |
Fix Released
|
Medium
|
Unassigned |
Bug Description
In the LessTif HID, when zoomed out such that at least one dimension of the board is smaller than the dimension of the drawing area, LessTif emits warnings in the console:
Warning:
Name: hscroll
Class: XmScrollBar
The specified scrollbar value is less than the minimum
scrollbar value.
Warning:
Name: vscroll
Class: XmScrollBar
The specified scrollbar value is less than the minimum
scrollbar value.
Changed in pcb: | |
milestone: | none → pcb-4.0.2 |
Changed in pcb: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: lesstif-gui |
Changed in pcb: | |
milestone: | pcb-4.0.2 → pcb-4.1.0 |
Changed in pcb: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi Chad,
I grep'ed for "set_scroll" in src/hid/ lesstif/ main.c and found this near line 1219:
void
lesstif_pan_fixup ()
{
#if 0
if (view_left_x > PCB->MaxWidth - (view_width * view_zoom))
view_left_x = PCB->MaxWidth - (view_width * view_zoom);
if (view_top_y > PCB->MaxHeight - (view_height * view_zoom))
view_top_y = PCB->MaxHeight - (view_height * view_zoom);
if (view_left_x < 0)
view_left_x = 0;
if (view_top_y < 0)
view_top_y = 0;
if (view_width * view_zoom > PCB->MaxWidth
&& view_height * view_zoom > PCB->MaxHeight)
{
zoom_by (1, 0, 0);
return;
}
#endif
set_scroll (hscroll, view_left_x, view_width, PCB->MaxWidth);
set_scroll (vscroll, view_top_y, view_height, PCB->MaxHeight);
lesstif_ invalidate_ all ();
}
Could you please test if removing the "#if 0" and "#endif" compiler directives solves the issue ?
Kind regards,
Bert Timmerman.