[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: koffice
From:       Thomas Zander <zander () kde ! org>
Date:       2008-07-24 7:46:34
Message-ID: 200807240946.35024.zander () kde ! org
[Download RAW message or body]


Hmm, maybe the undo action (emit startMacro) should not happen when the style 
manager is not found?

On Monday 14. July 2008 16:29:08 Girish Ramakrishnan wrote:
> +void KoTextSelectionHandler::setDefaultFormat()
> +{
> +    KoTextDocumentLayout *layout = dynamic_cast<KoTextDocumentLayout*>
> (d->textShapeData->document()->documentLayout()); +    if (!layout)
> +        return;
> +    emit startMacro(i18n("Set default format"));
> +    if (KoStyleManager *styleManager = layout->styleManager()) {



-- 
Thomas Zander

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic