-// -*- C++ -*-
/* This file is part of
* ======================================================
*
* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-2000 The LyX Team.
+ * Copyright 1995-2001 The LyX Team.
*
* ====================================================== */
#pragma implementation "vspace.h"
#endif
+#include <stdio.h>
+
#include "lyx_main.h"
#include "buffer.h"
#include "vspace.h"
switch(uni) {
case PW:
case PE:
- buffer << "." << abs(static_cast<int>(val)) << "\\columnwidth";
+ buffer << abs(static_cast<int>(val/100)) << "." << abs(static_cast<int>(val)%100) << "\\columnwidth";
break;
case PP:
- buffer << "." << abs(static_cast<int>(val)) << "\\pagewidth";
+ buffer << "." << abs(static_cast<int>(val/100)) << "." << abs(static_cast<int>(val)%100) << "\\pagewidth";
break;
case PL:
- buffer << "." << abs(static_cast<int>(val)) << "\\linewidth";
+ buffer << "." << abs(static_cast<int>(val/100)) << "." << abs(static_cast<int>(val)%100) << "\\linewidth";
break;
default:
buffer << val << unit_name[uni]; // setw?