extra checking
This commit is contained in:
parent
6b36857d21
commit
2e3a046d41
1 changed files with 6 additions and 3 deletions
|
@ -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: IconBar.cc,v 1.39 2003/07/10 11:09:19 fluxgen Exp $
|
// $Id: IconBar.cc,v 1.40 2003/07/10 14:49:26 fluxgen Exp $
|
||||||
|
|
||||||
#include "IconBar.hh"
|
#include "IconBar.hh"
|
||||||
|
|
||||||
|
@ -353,11 +353,14 @@ void IconBar::draw(const IconBarObj * const obj, int width) const {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const FluxboxWindow * const fluxboxwin = obj->getFluxboxWin();
|
const FluxboxWindow * const fluxboxwin = obj->getFluxboxWin();
|
||||||
|
if (fluxboxwin == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
Window iconwin = obj->getIconWin();
|
Window iconwin = obj->getIconWin();
|
||||||
unsigned int title_text_w;
|
unsigned int title_text_w;
|
||||||
|
|
||||||
title_text_w = m_font.textWidth(
|
title_text_w = m_font.textWidth(fluxboxwin->iconTitle().c_str(),
|
||||||
fluxboxwin->iconTitle().c_str(), fluxboxwin->iconTitle().size());
|
fluxboxwin->iconTitle().size());
|
||||||
|
|
||||||
unsigned int bevel_w = screen().rootTheme().bevelWidth();
|
unsigned int bevel_w = screen().rootTheme().bevelWidth();
|
||||||
int dx=bevel_w*2;
|
int dx=bevel_w*2;
|
||||||
|
|
Loading…
Reference in a new issue