-/* 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)
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);
}