diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2023-12-25 01:09:26 +0100 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2023-12-30 22:26:04 +0100 |
commit | 6f66fd861ef1d1bd583c31c2ce3d9c4a9896ede1 (patch) | |
tree | 2c1efe3d2347a375df36eaf1278cf3fb74ee72b4 /dw | |
parent | 95627efadf55c39901928ee730d22de55cdcc209 (diff) |
Fix bogus comparison of oofContainer[i]
The same index was being used in both sides of the comparison.
Diffstat (limited to 'dw')
-rw-r--r-- | dw/textblock.cc | 3 |
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) |