mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-12 01:13:51 +03:00
fix(ui): correct unused logic in CFramePoint::GetRelativeRect for completeness
This commit is contained in:
1 file changed
+5
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user