diff options
author | fluxgen <fluxgen> | 2003-07-10 14:49:26 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-07-10 14:49:26 (GMT) |
commit | 2e3a046d4157c2cb5b2f41b8fdf98e87f6f64392 (patch) | |
tree | d80d72fa3a92f44d80a12906ae5b8bfe90d1c3bd /src/IconBar.cc | |
parent | 6b36857d2196c4a3da8b91c9eeffb43e177ead7e (diff) | |
download | fluxbox-2e3a046d4157c2cb5b2f41b8fdf98e87f6f64392.zip fluxbox-2e3a046d4157c2cb5b2f41b8fdf98e87f6f64392.tar.bz2 |
extra checking
Diffstat (limited to 'src/IconBar.cc')
-rw-r--r-- | src/IconBar.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/IconBar.cc b/src/IconBar.cc index 7e5f31d..8c1b280 100644 --- a/src/IconBar.cc +++ b/src/IconBar.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: IconBar.cc,v 1.39 2003/07/10 11:09:19 fluxgen Exp $ | 22 | // $Id: IconBar.cc,v 1.40 2003/07/10 14:49:26 fluxgen Exp $ |
23 | 23 | ||
24 | #include "IconBar.hh" | 24 | #include "IconBar.hh" |
25 | 25 | ||
@@ -353,11 +353,14 @@ void IconBar::draw(const IconBarObj * const obj, int width) const { | |||
353 | return; | 353 | return; |
354 | 354 | ||
355 | const FluxboxWindow * const fluxboxwin = obj->getFluxboxWin(); | 355 | const FluxboxWindow * const fluxboxwin = obj->getFluxboxWin(); |
356 | if (fluxboxwin == 0) | ||
357 | return; | ||
358 | |||
356 | Window iconwin = obj->getIconWin(); | 359 | Window iconwin = obj->getIconWin(); |
357 | unsigned int title_text_w; | 360 | unsigned int title_text_w; |
358 | 361 | ||
359 | title_text_w = m_font.textWidth( | 362 | title_text_w = m_font.textWidth(fluxboxwin->iconTitle().c_str(), |
360 | fluxboxwin->iconTitle().c_str(), fluxboxwin->iconTitle().size()); | 363 | fluxboxwin->iconTitle().size()); |
361 | 364 | ||
362 | unsigned int bevel_w = screen().rootTheme().bevelWidth(); | 365 | unsigned int bevel_w = screen().rootTheme().bevelWidth(); |
363 | int dx=bevel_w*2; | 366 | int dx=bevel_w*2; |