Browse Source

LibGfx: Fix 7-bit ASCII checks in textDescriptionType and textType

This used to check the empty, moved-from parameter instead of
the member variable (-‸ლ)
Nico Weber 2 năm trước cách đây
mục cha
commit
51be964884
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      Userland/Libraries/LibGfx/ICC/TagTypes.h

+ 2 - 2
Userland/Libraries/LibGfx/ICC/TagTypes.h

@@ -746,7 +746,7 @@ public:
         , m_unicode_description(move(unicode_description))
         , m_macintosh_description(move(macintosh_description))
     {
-        for (u8 byte : ascii_description.bytes())
+        for (u8 byte : m_ascii_description.bytes())
             VERIFY(byte < 128);
     }
 
@@ -778,7 +778,7 @@ public:
         : TagData(offset, size, Type)
         , m_text(move(text))
     {
-        for (u8 byte : text.bytes())
+        for (u8 byte : m_text.bytes())
             VERIFY(byte < 128);
     }