]> www.fi.muni.cz Git - evince.git/blobdiff - backend/dvi/mdvi-lib/font.c
minor cosmetic changes as per Phil Bull.
[evince.git] / backend / dvi / mdvi-lib / font.c
index 0b3d04ba66a836294bcfc17e93e89d1ce00f1236..2f655df0b70b7684fa91d8eaa0bbdc1fb587ed93 100644 (file)
@@ -13,7 +13,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 #include <config.h>
@@ -379,10 +379,12 @@ again:
                return ch;
        } else if(MDVI_ENABLED(dvi, MDVI_PARAM_ANTIALIASED)) {
                if(ch->grey.data && 
+                  !MDVI_GLYPH_ISEMPTY(ch->grey.data) &&
                   ch->fg == dvi->curr_fg && 
                   ch->bg == dvi->curr_bg)
                        return ch;
-               if(ch->grey.data) {
+               if(ch->grey.data &&
+                  !MDVI_GLYPH_ISEMPTY(ch->grey.data)) {
                        if(dvi->device.free_image)
                                dvi->device.free_image(ch->grey.data);
                        ch->grey.data = NULL;