[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mgp-users 01021] Prefix bug



Since the MGP sources don't seem to include a bug-reporting address,
I'm going to have to burden this list instead.

When navigating slides non-sequentially, the xprefix of the last
visited slide (state->xprefix) is not properly reinitialized when you
return to slide 1.  I believe that the problem is in thirdpass() in
parse.c, which should allocate a CTL_PREFIXN as well as a CTL_PREFIX.

The following short presentation demonstrates the problem.  Display
slide 1, then slide 2, then return to slide 1.  The centered text will
suddenly appear to the right of the screen.

A workaround for now is to explicitly specify %prefix 0 as part of the
first page.

############################################################
%page
%center, size 5

This text should be centered
%page
%left
%prefix 20
%size 5

This text should be indented a bit
############################################################
-- 
    Geoff Kuenning   geoff@cs.hmc.edu   http://www.cs.hmc.edu/~geoff/

Perl is awk with skin cancer.
		-- Henry Spencer