Skip to content

Commit a311479

Browse files
committed
maybe fix crash in SetBorderWidth()
1 parent a606569 commit a311479

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Annotation.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,9 @@ int BorderWidth(Annotation* annot) {
838838
}
839839

840840
void SetBorderWidth(Annotation* annot, int newWidth) {
841+
if (!annot) {
842+
return;
843+
}
841844
EngineMupdf* e = annot->engine;
842845
{
843846
auto ctx = e->Ctx();

0 commit comments

Comments
 (0)