Commit 65053f43 authored by Albert Astals Cid's avatar Albert Astals Cid Committed by Albert Astals Cid

[TextOutputDev] simplify TextFontInfo::matches(const Ref *ref)

parent 4ea2e879
...@@ -342,7 +342,7 @@ bool TextFontInfo::matches(const TextFontInfo *fontInfo) const { ...@@ -342,7 +342,7 @@ bool TextFontInfo::matches(const TextFontInfo *fontInfo) const {
} }
bool TextFontInfo::matches(const Ref *ref) const { bool TextFontInfo::matches(const Ref *ref) const {
return (gfxFont->getID()->num == ref->num && gfxFont->getID()->gen == ref->gen); return (*(gfxFont->getID()) == *ref);
} }
double TextFontInfo::getAscent() const { double TextFontInfo::getAscent() const {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment