Skip to content

Commit 2f296ba

Browse files
committed
Addressed the feedback
1 parent 1e0501c commit 2f296ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Bookmarks/Find-Bookmark-Owner-TextBody-or-Header-Footer/.NET/Find-Bookmark-Owner-TextBody-or-Header-Footer/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ public static void Main(string[] args)
1616
if (bkmkStart != null)
1717
{
1818
// Get the paragraphs that contain the bookmark's start.
19-
WParagraph startPara = bkmkStart.OwnerParagraph;
20-
Entity ownerEntity = startPara;
19+
Entity ownerEntity = bkmkStart.OwnerParagraph;
2120
// Traverse the owner hierarchy until reaching the section, stopping if a HeaderFooter is found
2221
while (!(ownerEntity is WSection))
2322
{

0 commit comments

Comments
 (0)