From 8ed0fab12ae08c1bf5b7f1ec43a2a55a41766fd3 Mon Sep 17 00:00:00 2001 From: antony liu Date: Wed, 28 Jan 2026 20:31:46 +0800 Subject: [PATCH] Avoid null reference exception when shiftrows with picture, fix by issue #1667, thanks @aljcn --- ooxml/XSSF/UserModel/XSSFClientAnchor.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ooxml/XSSF/UserModel/XSSFClientAnchor.cs b/ooxml/XSSF/UserModel/XSSFClientAnchor.cs index 8f4c8671a..be1cb40ad 100644 --- a/ooxml/XSSF/UserModel/XSSFClientAnchor.cs +++ b/ooxml/XSSF/UserModel/XSSFClientAnchor.cs @@ -459,7 +459,7 @@ public override int Dx1 } set { - cell1.colOff = value; + Cell1.colOff = value; } } @@ -471,7 +471,7 @@ public override int Dy1 } set { - cell1.rowOff = value; + Cell1.rowOff = value; } } @@ -483,7 +483,7 @@ public override int Dy2 } set { - cell2.rowOff = value; + Cell2.rowOff = value; } } @@ -495,7 +495,7 @@ public override int Dx2 } set { - cell2.colOff = value; + Cell2.colOff = value; } } public AnchorType AnchorType @@ -514,7 +514,7 @@ public int Col1 { get { - return cell1.col; + return Cell1.col; } set { @@ -530,7 +530,7 @@ public int Col2 } set { - cell2.col = value; + Cell2.col = value; } } @@ -542,7 +542,7 @@ public int Row1 } set { - cell1.row = value; + Cell1.row = value; } } @@ -554,7 +554,7 @@ public int Row2 } set { - cell2.row = value; + Cell2.row = value; } }