Can't save or load layouts

Bug #1336569 reported by wgw
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
leo-editor
Fix Released
Undecided
Unassigned

Bug Description

"Save layout" from the right click frame menu:

Traceback (most recent call last):
  File "/data2/leo/leo-editor/leo/plugins/nested_splitter.py", line 363, in cb
    splitter.context_cb(id_, index)
  File "/data2/leo/leo-editor/leo/plugins/nested_splitter.py", line 662, in context_cb
    provided = provider.ns_do_context(id_, self, index)
  File "/data2/leo/leo-editor/leo/plugins/free_layout.py", line 363, in ns_do_context
    if id_.startswith('_fl_embed_layout'):
AttributeError: 'bool' object has no attribute 'startswith'

Here are my startup messages:

bill@bill-laptop:/data2/leo/leo-editor$ ./launchLeo.py
'@font-size-body' from style-sheet comment definition, please use regular @string / @color type @settings.

** isPython3: False
Leo 4.11 final, build 62b0df06c7b6 (branch: master), 2014-06-29 19:39:45
Python 2.7.3, PyQt version 4.8.1
linux2
setting leoID from os.getenv('USER'): 'bill'
load dir: /data2/leo/leo-editor/leo/core
global config dir: /data2/leo/leo-editor/leo/config
home dir: /home/bill
reading settings in /data2/leo/leo-editor/leo/config/leoSettings.leo
reading settings in /home/bill/.leo/myLeoSettings.leo
reading settings in /home/bill/.leo/workbook.leo
Abbreviations on

Revision history for this message
wgw (wgwinder) wrote :

Found that I had added a "em bed layout" (stored in @settings-->@data free-layout-layout). That might be pertinent for the bug, or not...

{
    "content": [
        "_leo_pane:logFrame",
        {
            "content": [
                "_leo_pane:bodyFrame",
                "_leo_viewrendered"
            ],
            "orientation": 1,
            "sizes": [
                444,
                558
            ]
        },
        "_leo_bookmarks_show:"
    ],
    "orientation": 2,
    "sizes": [
        330,
        132,
        103
    ]
}

Revision history for this message
tbnorth (terry-n-brown) wrote :

I think this is fixed in cb5bc4fb but if you see any more problem please re-open or create a bug here https://github.com/leo-editor/leo-editor/issues?state=open

Changed in leo-editor:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.