all repos — fluxbox @ 2e3a046d4157c2cb5b2f41b8fdf98e87f6f64392

custom fork of the fluxbox windowmanager

extra checking
fluxgen fluxgen
commit

2e3a046d4157c2cb5b2f41b8fdf98e87f6f64392

parent

6b36857d2196c4a3da8b91c9eeffb43e177ead7e

1 files changed, 6 insertions(+), 3 deletions(-)

jump to
M src/IconBar.ccsrc/IconBar.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // 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"

@@ -353,11 +353,14 @@ if (!obj)

return; const FluxboxWindow * const fluxboxwin = obj->getFluxboxWin(); + if (fluxboxwin == 0) + return; + Window iconwin = obj->getIconWin(); unsigned int title_text_w; - title_text_w = m_font.textWidth( - fluxboxwin->iconTitle().c_str(), fluxboxwin->iconTitle().size()); + title_text_w = m_font.textWidth(fluxboxwin->iconTitle().c_str(), + fluxboxwin->iconTitle().size()); unsigned int bevel_w = screen().rootTheme().bevelWidth(); int dx=bevel_w*2;