$NetBSD: patch-ad,v 1.2 2001/10/15 22:45:58 skrll Exp $ --- khexedit/dialog.cc.orig Tue Aug 1 17:06:40 2000 +++ khexedit/dialog.cc @@ -1,6 +1,6 @@ /* * khexedit - Versatile hex editor - * Copyright (C) 1999 Espen Sand, espensa@online.no + * Copyright (C) 1999 Eepen Sand, espensa@online.no * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,7 +20,7 @@ #include #include -#include +#include #include #include @@ -940,7 +940,7 @@ mGroupSpin = new QSpinBox( page ); if( mGroupSpin == 0 ) { return; } mGroupSpin->setMinimumWidth( fontMetrics().width("M")*20 ); - mGroupSpin->setRange(1, MAXINT ); + mGroupSpin->setRange(1, INT_MAX ); text = i18n("&Group size [bytes]"); QLabel *label = new QLabel( mGroupSpin, text, page ); @@ -952,7 +952,7 @@ mBitSpin = new QSpinBox( page ); if( mBitSpin == 0 ) { return; } mBitSpin->setMinimumWidth( fontMetrics().width("M")*20 ); - mBitSpin->setRange(-MAXINT, MAXINT); + mBitSpin->setRange(INT_MIN, INT_MAX); text = i18n("S&hift size [bits]"); label = new QLabel( mBitSpin, text, page ); @@ -1098,7 +1098,7 @@ mSizeBox = new QSpinBox( plainPage() ); if( mSizeBox == 0 ) { return; } mSizeBox->setMinimumWidth( fontMetrics().maxWidth()*17 ); - mSizeBox->setRange( 1, MAXINT ); + mSizeBox->setRange( 1, INT_MAX ); mSizeBox->setValue( 1 ); QLabel *label = new QLabel( mSizeBox, i18n("&Size"), plainPage() );