aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dw/textblock.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index a92832b9..3ba81286 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -2,6 +2,7 @@
* Dillo Widget
*
* Copyright 2005-2007, 2012-2014 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2023 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -552,7 +553,7 @@ void Textblock::notifySetParent ()
// avoid dublicates
bool found = false;
for (int j = 0; !found && j < numSizeReferences; j++)
- if (oofContainer[i] == oofContainer[i])
+ if (oofContainer[i] == oofContainer[j])
found = true;
if (!found)