>>>>> "Edwin" == Leuven, E <[EMAIL PROTECTED]> writes:

>> Two solutions:
>> 
>> 1/ revert Bo's patch
>> 
>> 2/ apply the patch below, that makes the document dirty only when
>> it is not read-only.

Edwin> strange, i only see 1 solution...

Try this one.

JMarc

Index: src/insets/InsetCollapsable.cpp
===================================================================
--- src/insets/InsetCollapsable.cpp	(révision 18240)
+++ src/insets/InsetCollapsable.cpp	(copie de travail)
@@ -444,7 +444,8 @@ void InsetCollapsable::setStatus(Cursor 
 		cur.leaveInset(*this);
 	// Because we save CollapseStatus in lyx file, change of status
 	// should lead to a dirty buffer. (This fixes bug 2993).
-	cur.bv().buffer()->markDirty();
+	if (!cur.bv().buffer()->isReadonly())
+		cur.bv().buffer()->markDirty();
 }
 
 

Reply via email to