]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlFloat.C
Move the external dialog to the new scheme.
[lyx.git] / src / frontends / controllers / ControlFloat.C
index c78ca8b67151abf7779a0fbebc59d3d44af588f7..24fe4acdc16f26194063a62bff29716f59cb22f1 100644 (file)
@@ -1,22 +1,19 @@
-/* This file is part of
- * ======================================================
+/**
+ * \file ControlFloat.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
- *
- *           Copyright 2001 The LyX Team.
- *
- * ======================================================
+ * \author unknown
  *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "ControlFloat.h"
 #include "BufferView.h"
+#include "buffer.h"
 
 
 ControlFloat::ControlFloat(LyXView & lv, Dialogs & d)
@@ -27,8 +24,8 @@ ControlFloat::ControlFloat(LyXView & lv, Dialogs & d)
 void ControlFloat::applyParamsToInset()
 {
        inset()->placement(params().placement);
-       inset()->wide(params().wide);
-       lv_.view()->updateInset(inset(), true);
+       inset()->wide(params().wide, bufferview()->buffer()->params);
+       bufferview()->updateInset(inset(), true);
 
 }