# HG changeset patch
# User Teemu Piippo <crimsondusk64@gmail.com>
# Date 1406463222 -10800
# Node ID 403affd33c6e9fc6cbeb71478a159579a2e98299
# Parent  46689ea6fdc626106dcb1ab7b1d5109364fc54a0
- fixed: changing the document of a subfile wasn't recorded into history properly

diff -r 46689ea6fdc6 -r 403affd33c6e src/ldObject.cc
--- a/src/ldObject.cc	Sun Jul 27 04:35:48 2014 +0300
+++ b/src/ldObject.cc	Sun Jul 27 15:13:42 2014 +0300
@@ -904,7 +904,7 @@
 //
 void LDSubfile::setFileInfo (const LDDocumentPtr& a)
 {
-	m_fileInfo = a;
+	changeProperty (self(), &m_fileInfo, a);
 
 	// If it's an immediate subfile reference (i.e. this subfile belongs in an
 	// explicit file), we need to pre-compile the GL polygons for the document