Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/83c9d2017f16be6ef42a590e1eff76006a897d67
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/83c9d2017f16be6ef42a590e1eff76006a897d67
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/83c9d2017f16be6ef42a590e1eff76006a897d67

The branch, master has been updated
       via  83c9d2017f16be6ef42a590e1eff76006a897d67 (commit)
      from  acee5faa3f03a229a6d7d14e042441a6af048faf (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=83c9d2017f16be6ef42a590e1eff76006a897d67
commit 83c9d2017f16be6ef42a590e1eff76006a897d67
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>

    Fix clamping in commit fa64763b0d8c6566eda5f6547e7f2f3e62b77613

diff --git a/desktop/browser_history.c b/desktop/browser_history.c
index ad9c501..2a5fd63 100644
--- a/desktop/browser_history.c
+++ b/desktop/browser_history.c
@@ -458,11 +458,12 @@ nserror browser_window_history_update(struct 
browser_window *bw,
            guit->window->get_scroll(bw->window, &sx, &sy)) {
                int content_height = content_get_height(content);
                int content_width = content_get_width(content);
+               /* clamp width and height values */
                if (content_height < 1) {
                        content_height = 1;
                }
                if (content_width < 1) {
-                       content_height = 1;
+                       content_width = 1;
                }
                /* Successfully got scroll offsets, update the entry */
                history->current->page.scroll_x = \


-----------------------------------------------------------------------

Summary of changes:
 desktop/browser_history.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/desktop/browser_history.c b/desktop/browser_history.c
index ad9c501..2a5fd63 100644
--- a/desktop/browser_history.c
+++ b/desktop/browser_history.c
@@ -458,11 +458,12 @@ nserror browser_window_history_update(struct 
browser_window *bw,
            guit->window->get_scroll(bw->window, &sx, &sy)) {
                int content_height = content_get_height(content);
                int content_width = content_get_width(content);
+               /* clamp width and height values */
                if (content_height < 1) {
                        content_height = 1;
                }
                if (content_width < 1) {
-                       content_height = 1;
+                       content_width = 1;
                }
                /* Successfully got scroll offsets, update the entry */
                history->current->page.scroll_x = \


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to