From 2df93ad813aecf9c2f2162afed656f0e11b25b8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=AB=E5=9F=8Evia?= <969954321@qq.com> Date: Mon, 25 Dec 2023 14:34:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BF=BB=E9=A1=B5=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs b/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs index 157f57f..79f0a66 100644 --- a/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs +++ b/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs @@ -415,7 +415,7 @@ namespace VPet_Simulator.Windows if(e.Key == Key.Enter && int.TryParse(TbPage.Text?.Trim(), out int page)) { - pagination.CurrentPage = Math.Min(0, Math.Max(pagination.MaxPage, page)); + pagination.CurrentPage = Math.Max(0, Math.Min(pagination.MaxPage, page)); } } }