tags 413270 +patch thanks Hello all: I've tried the upstream patch proposed and saw it worked. Hence the upstream svn committing. I'm attaching the patch here for convenience. Thanks -- Raúl Sánchez Siles
Index: KoTextObject.cpp
===================================================================
--- koffice-1.6.3/lib/kotext/KoTextObject.cpp (revision 665776)
+++ koffice-1.6.3/lib/kotext/KoTextObject.cpp (working copy)
@@ -303,11 +303,12 @@
KoTextDocCommand * cmd = textobj->deleteTextCommand( textdoc, id, index, text.rawData(), customItemsMap, oldParagLayouts );
textdoc->addCommand( cmd );
Q_ASSERT( placeHolderCmd );
- placeHolderCmd->addCommand( new KoTextCommand( textobj, /*cmd, */QString::null ) );
- // Deleting any custom items -> let them add their command
- if ( !customItemsMap.isEmpty() )
- {
- customItemsMap.deleteAll( placeHolderCmd );
+ if (placeHolderCmd) {
+ placeHolderCmd->addCommand( new KoTextCommand( textobj, /*cmd, */QString::null ) );
+ // Deleting any custom items -> let them add their command
+ if ( !customItemsMap.isEmpty() ) {
+ customItemsMap.deleteAll( placeHolderCmd );
+ }
}
} break;
case Invalid:
Attachment:
signature.asc
Description: This is a digitally signed message part.