Bennett Helm wrote:
On Jun 21, 2007, at 11:38 AM, Edwin Leuven wrote:
and this one doesn't make sense:

if we could tell beforehand what the default was because then we could show something like:
o Justified (default)
o Left
o Center
o Right
?
Of the options I've seen, I agree that this is the best.
In principle, I think default ought to be separate: Saying "default" means "don't do anything special", whereas saying "Justified" ought to mean, "Make it justified, no matter what". (Imagine you have a child doc, and it might be included in different master docs with different defaults.) In fact, that's not how LyX handles things at present. If you check "Justified" and that happens to be the default, then it's the same as checking "Default". But this is a different bug, I think, viz:

void Text::setParagraph(Cursor & cur,
                           Spacing const & spacing, LyXAlignment align,
                           docstring const & labelwidthstring, bool noindent)
{
        BOOST_ASSERT(cur.text());
        // make sure that the depth behind the selection are restored, too
        pit_type undopit = undoSpan(cur.selEnd().pit());
        recUndo(cur, cur.selBegin().pit(), undopit - 1);

        for (pit_type pit = cur.selBegin().pit(), end = cur.selEnd().pit();
             pit <= end; ++pit) {
                Paragraph & par = pars_[pit];
                ParagraphParameters & params = par.params();
                params.spacing(spacing);

                // does the layout allow the new alignment?
                Layout_ptr const & layout = par.layout();

                if (align == LYX_ALIGN_LAYOUT)
                        align = layout->align;
                if (align & layout->alignpossible) {
/// NOTE: It's right here that the bug mentioned above lies. It would be trivial
/// to change this if people thought it necessary. Just delete the next three 
lines
/// and fix the whitespace.
                        if (align == layout->align)
                                params.align(LYX_ALIGN_LAYOUT);
                        else
                                params.align(align);
                }
                par.setLabelWidthString(labelwidthstring);
                params.noindent(noindent);
        }
}

Richard

--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto

Reply via email to