From af03f2fa94d7be3226b90ded3eea4626156f30b4 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Thu, 9 Nov 2000 14:15:33 +0000 Subject: #65293#: std::min()/max() --- sw/source/ui/frmdlg/colex.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sw/source/ui/frmdlg/colex.cxx b/sw/source/ui/frmdlg/colex.cxx index efb5652d1e09..091a567f5176 100644 --- a/sw/source/ui/frmdlg/colex.cxx +++ b/sw/source/ui/frmdlg/colex.cxx @@ -2,9 +2,9 @@ * * $RCSfile: colex.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: hjs $ $Date: 2000-11-07 12:08:55 $ + * last change: $Author: hr $ $Date: 2000-11-09 15:15:33 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -59,8 +59,6 @@ * ************************************************************************/ -#include -#include #ifdef PRECOMPILED #include "ui_pch.hxx" @@ -71,6 +69,7 @@ #include "cmdid.h" #include "hintids.hxx" #include "uiparam.hxx" +#include #ifndef _SFXENUMITEM_HXX //autogen @@ -332,8 +331,7 @@ void SwColumnOnlyExample::Paint( const Rectangle& rRect ) // Pen aSolidPen(PEN_SOLID); long nWidth = aFrmSize.Width(); long nHeight = aFrmSize.Height(); - Fraction aXScale( aWinSize.Width(), - std::max( (long)(nWidth + nWidth / 8), (long) 1 ) ); + Fraction aXScale( aWinSize.Width(), std::max( (long)(nWidth + nWidth / 8), (long) 1 ) ); Fraction aYScale( aWinSize.Height(), std::max( nHeight, (long) 1 ) ); MapMode aMapMode( GetMapMode() ); aMapMode.SetScaleX( aXScale ); @@ -430,6 +428,9 @@ void SwColumnOnlyExample::SetFrameSize(const Size& rS, long nDist) /*-----------------25.02.94 21:22------------------- $Log: not supported by cvs2svn $ + Revision 1.2 2000/11/07 12:08:55 hjs + use min/max from stl + Revision 1.1.1.1 2000/09/18 17:14:37 hr initial import -- cgit v1.2.1