]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlength.C
fix reading the author field.
[lyx.git] / src / lyxlength.C
index c461efd4755dd666661e2c7275aabafef4ceeadf..027e17b21a67e7789b5e185115f6d03791cc2d78 100644 (file)
 #include "lengthcommon.h"
 #include "lyxrc.h"
 
+#include <sstream>
 
-#include "support/std_sstream.h"
 
-using std::abs;
 using std::ostringstream;
 using std::string;
 
@@ -64,20 +63,20 @@ string const LyXLength::asLatexString() const
        switch (unit_) {
        case PTW:
                snprintf(buffer, 78, "%.2f\\textwidth", val_/100.0);
-               break;                    
-       case PCW:                   
+               break;
+       case PCW:
                snprintf(buffer, 78, "%.2f\\columnwidth", val_/100.0);
-               break;                    
-       case PPW:                   
+               break;
+       case PPW:
                snprintf(buffer, 78, "%.2f\\paperwidth", val_/100.0);
-               break;                    
-       case PLW:                   
+               break;
+       case PLW:
                snprintf(buffer, 78, "%.2f\\linewidth", val_/100.0);
-               break;                    
-       case PPH:                   
+               break;
+       case PPH:
                snprintf(buffer, 78, "%.2f\\paperheight", val_/100.0);
-               break;                    
-       case PTH:                   
+               break;
+       case PTH:
                snprintf(buffer, 78, "%.2f\\textheight", val_/100.0);
                break;
        default:
@@ -146,10 +145,6 @@ int LyXLength::inPixels(int text_width, int em_width_base) const
        // between lengths and font sizes on the screen
        // is the same as on paper.
 
-#ifdef WITH_WARNINGS
-#warning if you don't care than either call this function differently or let it return negative values and call abs() explicitly when needed (Andre')
-#endif
-
        double result = 0.0;
 
        switch (unit_) {