]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed serious bug in wxFont::operator== (ignored weight)
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 23 Sep 2001 22:37:42 +0000 (22:37 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 23 Sep 2001 22:37:42 +0000 (22:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fontcmn.cpp

index 4176be9b544094ed7313fdbc4693a99b220af300..1a8b50c376d30baa812e624dec511c5efa8880f4 100644 (file)
@@ -140,6 +140,7 @@ bool wxFontBase::operator==(const wxFont& font) const
             GetPointSize() == font.GetPointSize() &&
             GetFamily() == font.GetFamily() &&
             GetStyle() == font.GetStyle() &&
             GetPointSize() == font.GetPointSize() &&
             GetFamily() == font.GetFamily() &&
             GetStyle() == font.GetStyle() &&
+            GetWeight() == font.GetWeight() &&
             GetUnderlined() == font.GetUnderlined() &&
             GetFaceName() == font.GetFaceName() &&
             GetEncoding() == font.GetEncoding()
             GetUnderlined() == font.GetUnderlined() &&
             GetFaceName() == font.GetFaceName() &&
             GetEncoding() == font.GetEncoding()