progressbar.cxx (0b4ced1d) progressbar.cxx (b4abecfe)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 261 unchanged lines hidden (view full) ---

270 if ( nMin < nMax )
271 {
272 // Take correct Min and Max
273 m_nMinRange = nMin ;
274 m_nMaxRange = nMax ;
275 }
276 else
277 {
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 261 unchanged lines hidden (view full) ---

270 if ( nMin < nMax )
271 {
272 // Take correct Min and Max
273 m_nMinRange = nMin ;
274 m_nMaxRange = nMax ;
275 }
276 else
277 {
278 // Change Min and Max automaticly
278 // Change Min and Max automatically
279 m_nMinRange = nMax ;
280 m_nMaxRange = nMin ;
281 }
282
283 // assure that m_nValue is within the range
284 if (!(m_nMinRange < m_nValue && m_nValue < m_nMaxRange))
285 m_nValue = m_nMinRange;
286

--- 268 unchanged lines hidden ---
279 m_nMinRange = nMax ;
280 m_nMaxRange = nMin ;
281 }
282
283 // assure that m_nValue is within the range
284 if (!(m_nMinRange < m_nValue && m_nValue < m_nMaxRange))
285 m_nValue = m_nMinRange;
286

--- 268 unchanged lines hidden ---