File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -124,16 +124,19 @@ class DiffLocation
124
124
rect.top = diffRect.top ;
125
125
rect.width = diffRect.width ;
126
126
rect.height = diffRect.height ;
127
- for (int containerId = diffRect.containerId ; containerId != - 1 ; )
127
+ for (int containerId = diffRect.containerId ; containerId > 0 ; )
128
128
{
129
129
const ContainerRect& containerRect = m_containerRects[window][containerId];
130
130
if (containerRect.id == 0 && (containerRect.width == 0 || containerRect.height == 0 ))
131
131
break ;
132
132
clip (rect, containerRect);
133
133
containerId = containerRect.containerId ;
134
134
}
135
- rect.left += m_scrollX;
136
- rect.top += m_scrollY;
135
+ if (rect.left != -99999 .9f || rect.top != -99999 .9f )
136
+ {
137
+ rect.left += m_scrollX;
138
+ rect.top += m_scrollY;
139
+ }
137
140
if (!window.empty ())
138
141
{
139
142
calcGlobalPosition (rect, window);
You can’t perform that action at this time.
0 commit comments