mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-09 01:52:32 +02:00
Always bring the selected issue into view on the list
This commit is contained in:
@@ -393,6 +393,7 @@ namespace UVtools.WPF
|
||||
set
|
||||
{
|
||||
if (!RaiseAndSetIfChanged(ref _issueSelectedIndex, value)) return;
|
||||
IssuesGrid.ScrollIntoView(Issues[_issueSelectedIndex], null);
|
||||
RaisePropertyChanged(nameof(IssueSelectedIndexStr));
|
||||
RaisePropertyChanged(nameof(IssueCanGoPrevious));
|
||||
RaisePropertyChanged(nameof(IssueCanGoNext));
|
||||
|
||||
@@ -1684,7 +1684,7 @@ namespace UVtools.WPF
|
||||
// If location clicked is within an issue, activate it.
|
||||
for (var i = 0; i < Issues.Count; i++)
|
||||
{
|
||||
LayerIssue issue = Issues[i];
|
||||
var issue = Issues[i];
|
||||
|
||||
if (issue.LayerIndex != ActualLayer) continue;
|
||||
if (!GetTransposedIssueBounds(issue).Contains(location)) continue;
|
||||
@@ -1885,7 +1885,7 @@ namespace UVtools.WPF
|
||||
|
||||
if ((e.KeyModifiers & KeyModifiers.Control) != 0)
|
||||
{
|
||||
Point realLocation = GetTransposedPoint(location);
|
||||
var realLocation = GetTransposedPoint(location);
|
||||
unsafe
|
||||
{
|
||||
var brightness = LayerCache.ImageSpan[LayerCache.Image.GetPixelPos(realLocation)];
|
||||
|
||||
Reference in New Issue
Block a user