diff --git a/include/real.h b/include/real.h index 3a620a3ae..04f02d253 100755 --- a/include/real.h +++ b/include/real.h @@ -214,6 +214,9 @@ public: // @cmember Trasforma un reale in stringa (chiama ), ma // ritorna il formato italiano const char* stringa(int len = 0, int dec = UNDEFINED, char pad = ' ') const; + // @cmember Trasforma un reale in stringa (chiama ), + //ma ritorna il formato atteso da Excel + const char* stringe(int len = 0, int dec = UNDEFINED, char pad = ' ') const; // @cmember Ritorna la stringa con il formato passato const char* string(const char* picture) const; // @cmember Ritorna la stringa con il formato passato diff --git a/include/reprint.cpp b/include/reprint.cpp index 25121791f..c998b9adf 100755 --- a/include/reprint.cpp +++ b/include/reprint.cpp @@ -335,7 +335,7 @@ void TPrint_preview_window::update() for (int i = 1; lpi > 0; i++) { set_pen(i%lpi ? XVT_MAKE_COLOR(232,232,255) : XVT_MAKE_COLOR(255,192,255)); - const short y = (short) i * res.y / lpi; + const short y = short(i * res.y / lpi); if (y > size.y) break; line(0, y, (short)size.x, y);