https://bugs.freedesktop.org/show_bug.cgi?id=37593

Stephan Bergmann <sberg...@redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sberg...@redhat.com

--- Comment #10 from Stephan Bergmann <sberg...@redhat.com> 2012-02-15 12:48:44 
PST ---
The relevant code looks overly complicated.

Removing *two* entries off the end of pHistoryList in 
SvtTemplateWindow::OpenHistory (svtools/source/contnr/templwin.cxx) indeed 
looks odd, but is effectively
in there "since the beginning" (subsequent commits just changed the underlying 
data structures).

What apparently happens if you follow the steps described in bug 38009 and you 
reopen the dialog after you had selected a template from "My Templates" the last
time it had been opened, is

- a call to SvtTemplateWindow::AppendHistoryURL with the .../templates/en-US URL

- followed by a call to SvtTemplateWindow::AppendHistoryURL with the 
.../templates/en-US/My%20Templates URL

- followed by a call to ClearHistory -- this apparently comes from 
UpdateHdl_Impl, no idea what it is supposed to do

- followed by another call to SvtTemplateWindow::AppendHistoryURL with the 
.../templates/en-US URL

and in particular no calls to OpenHistory involved (which might therefore be a 
red herring after all)

That code apparently needs further investigation...

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to