diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2000-11-09 14:22:28 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2000-11-09 14:22:28 +0000 |
commit | 2700982599036bf404014d47cbcf355588cd2295 (patch) | |
tree | 3aa3c20f8acb9767bb00f084ab3be5ce03a055f3 | |
parent | af03f2fa94d7be3226b90ded3eea4626156f30b4 (diff) |
#65293#: std::min()/max()
-rw-r--r-- | sw/source/ui/table/tabledlg.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sw/source/ui/table/tabledlg.cxx b/sw/source/ui/table/tabledlg.cxx index 3a0e661e822b..5ff7b4fe9c6a 100644 --- a/sw/source/ui/table/tabledlg.cxx +++ b/sw/source/ui/table/tabledlg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: tabledlg.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: hjs $ $Date: 2000-11-07 12:48:38 $ + * last change: $Author: hr $ $Date: 2000-11-09 15:22:28 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -59,9 +59,6 @@ * ************************************************************************/ -#include <string> -#include <algorithm> - #ifdef PRECOMPILED #include "ui_pch.hxx" #endif @@ -169,6 +166,7 @@ #ifndef _TABLE_HRC #include <table.hrc> #endif +#include <algorithm> #ifdef DEBUG_TBLDLG @@ -840,7 +838,7 @@ int SwFormatTablePage::DeactivatePage( SfxItemSet* pSet ) } if(nColSum != pTblData->GetWidth()) { - SwTwips nMinWidth = std::min(MINLAY, pTblData->GetWidth() / pTblData->GetColCount() - 1); + SwTwips nMinWidth = std::min((long)MINLAY, pTblData->GetWidth() / pTblData->GetColCount() - 1); SwTwips nDiff = nColSum - pTblData->GetWidth(); while ( Abs(nDiff) > pTblData->GetColCount() + 1 ) { @@ -2111,6 +2109,9 @@ void SwTextFlowPage::DisablePageBreak() /*------------------------------------------------------------------------ $Log: not supported by cvs2svn $ + Revision 1.2 2000/11/07 12:48:38 hjs + use min/max from stl + Revision 1.1.1.1 2000/09/18 17:14:48 hr initial import |