This repository was archived by the owner on Jun 13, 2023. It is now read-only.
Commit aba260f
authored
Fix crash if zooming out near frame edge (alievk#319)
Added clamping of offsets so that lrud always lies within image
boundaries. The adjusted offsets are returned to main so that it is no
longer necessary to test if an offset increase/decrease should be
allowed.1 parent 98945b2 commit aba260f
2 files changed
+19
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | | - | |
| 278 | + | |
| 279 | + | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
327 | | - | |
| 326 | + | |
328 | 327 | | |
329 | | - | |
330 | | - | |
| 328 | + | |
331 | 329 | | |
332 | | - | |
333 | | - | |
| 330 | + | |
334 | 331 | | |
335 | | - | |
336 | | - | |
| 332 | + | |
337 | 333 | | |
338 | | - | |
339 | | - | |
| 334 | + | |
340 | 335 | | |
341 | | - | |
342 | | - | |
| 336 | + | |
343 | 337 | | |
344 | | - | |
345 | | - | |
| 338 | + | |
346 | 339 | | |
347 | | - | |
348 | | - | |
| 340 | + | |
349 | 341 | | |
350 | 342 | | |
351 | 343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
117 | 121 | | |
118 | 122 | | |
119 | 123 | | |
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
124 | 132 | | |
125 | 133 | | |
126 | 134 | | |
127 | 135 | | |
128 | 136 | | |
129 | | - | |
| 137 | + | |
130 | 138 | | |
131 | 139 | | |
132 | 140 | | |
| |||
0 commit comments