mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
fix(ui): correct unused logic in CFramePoint::GetRelativeRect for completeness
This commit is contained in:
parent
b2fa58a831
commit
debc9145fd
@ -61,11 +61,13 @@ int32_t CFramePoint::GetRelativeRect(CRect& rect) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Nothing appears to override the default IsAttachmentOrigin implementation, which always
|
||||
// returns false
|
||||
if (relative->IsAttachmentOrigin()) {
|
||||
rect.minY -= rect.minY;
|
||||
rect.minX -= rect.minX;
|
||||
rect.maxY -= rect.minY;
|
||||
rect.maxX -= rect.minX;
|
||||
rect.maxY -= rect.minY;
|
||||
rect.minX -= rect.minX;
|
||||
rect.minY -= rect.minY;
|
||||
}
|
||||
|
||||
if (!flag2initial) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user