When you fix things they shouldn't break

This commit is contained in:
pekdon 2002-02-02 18:20:44 +00:00
parent 0cfe1502f4
commit 39d4112a5e

View file

@ -19,7 +19,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
// $Id: Tab.cc,v 1.18 2002/01/27 12:52:02 fluxgen Exp $ // $Id: Tab.cc,v 1.19 2002/02/02 18:20:44 pekdon Exp $
#include "Tab.hh" #include "Tab.hh"
@ -488,15 +488,21 @@ void Tab::setPosition() {
m_win->getScreen()->getTabAlignment()); m_win->getScreen()->getTabAlignment());
break; break;
case PLEFT: case PLEFT:
pos_x = m_win->getXFrame() - m_size_w; pos_x = m_win->isShaded() ?
pos_y = setPositionLRAlignHelper( setPositionTBAlignHelper(m_win->getScreen()->getTabAlignment()) :
m_win->getScreen()->getTabAlignment()); m_win->getXFrame() - m_size_w;
pos_y = m_win->isShaded() ?
setPositionShadingHelper(true) :
setPositionLRAlignHelper(m_win->getScreen()->getTabAlignment());
break; break;
case PRIGHT: case PRIGHT:
pos_x = m_win->getXFrame() + m_win->getWidth() + pos_x = m_win->isShaded() ?
setPositionTBAlignHelper(m_win->getScreen()->getTabAlignment()) :
m_win->getXFrame() + m_win->getWidth() +
m_win->getScreen()->getBorderWidth2x(); m_win->getScreen()->getBorderWidth2x();
pos_y = setPositionLRAlignHelper( pos_y = m_win->isShaded() ?
m_win->getScreen()->getTabAlignment()); setPositionShadingHelper(true) :
setPositionLRAlignHelper(m_win->getScreen()->getTabAlignment());
break; break;
default: default:
if(m_win->isShaded()) { if(m_win->isShaded()) {