소스 검색

LibCards: Correct a spelling mistake

Gunnar Beutner 4 년 전
부모
커밋
630430379e
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      Userland/Libraries/LibCards/Card.cpp
  2. 1 1
      Userland/Libraries/LibCards/Card.h

+ 1 - 1
Userland/Libraries/LibCards/Card.cpp

@@ -139,7 +139,7 @@ void Card::draw(GUI::Painter& painter) const
 
 void Card::clear(GUI::Painter& painter, const Color& background_color) const
 {
-    painter.fill_rect({ old_positon(), { width, height } }, background_color);
+    painter.fill_rect({ old_position(), { width, height } }, background_color);
 }
 
 void Card::save_old_position()

+ 1 - 1
Userland/Libraries/LibCards/Card.h

@@ -39,7 +39,7 @@ public:
 
     Gfx::IntRect& rect() { return m_rect; }
     Gfx::IntPoint position() const { return m_rect.location(); }
-    const Gfx::IntPoint& old_positon() const { return m_old_position; }
+    const Gfx::IntPoint& old_position() const { return m_old_position; }
     uint8_t value() const { return m_value; };
     Type type() const { return m_type; }