changeset 1747:4e57bc05b69d

also recompute backgroundStyle in StyleEngine::restyle()
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Sun, 17 Oct 2010 21:00:33 +0200
parents ef983c0fe908
children ad210fc5a366
files src/styleengine.cc
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/styleengine.cc	Sun Oct 17 18:38:52 2010 +0200
+++ b/src/styleengine.cc	Sun Oct 17 21:00:33 2010 +0200
@@ -746,6 +746,10 @@
          n->wordStyle->unref ();
          n->wordStyle = NULL;
       }
+      if (n->backgroundStyle) {
+         n->backgroundStyle->unref ();
+         n->backgroundStyle = NULL;
+      }
 
       style0 (i);
    }