Skip to content

Commit 5f0adb7

Browse files
committed
missed a spot with the optional.
1 parent d24986f commit 5f0adb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderer/dx/CustomTextRenderer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,10 +663,10 @@ try
663663
DrawingContext* drawingContext = static_cast<DrawingContext*>(clientDrawingContext);
664664
RETURN_HR_IF(E_INVALIDARG, !drawingContext);
665665

666-
if (_hasClipPushed)
666+
if (_clipRect.has_value())
667667
{
668668
drawingContext->renderTarget->PopAxisAlignedClip();
669-
_hasClipPushed = false;
669+
_clipRect = std::nullopt;
670670
}
671671

672672
return S_OK;

0 commit comments

Comments
 (0)