From 789aec1acdf798aea32ab16219a8f19c6155250e Mon Sep 17 00:00:00 2001 From: zautrix Date: Tue, 23 Aug 2005 17:08:17 +0000 Subject: layout fix --- diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index d8a2134..c1b149f 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp @@ -717,6 +717,8 @@ void KOAgendaView::createDayLabels() dlf.setBold( true ); int selCount = mSelectedDates.count(); int widModulo = maxWid - (mAgenda->gridSpacingX() * selCount)+1; + if ( widModulo < 0 || widModulo > selCount ) + widModulo = 0; QString dayTest = "Mon 20"; //QString dayTest = "Mon 20"; int wid = fm.width( dayTest ); -- cgit v0.9.0.2