Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
9076bfc9
Commit
9076bfc9
authored
Jul 23, 2013
by
Camille Delbegue
Committed by
jean-pierre charras
Jul 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pl_Editor: Fix wx28 compatibility
parent
ec7ee344
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
design_tree_frame.cpp
pagelayout_editor/design_tree_frame.cpp
+1
-0
pl_editor_frame.cpp
pagelayout_editor/pl_editor_frame.cpp
+2
-3
No files found.
pagelayout_editor/design_tree_frame.cpp
View file @
9076bfc9
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
* @file design_tree_frame.cpp
* @file design_tree_frame.cpp
*/
*/
#include <wx/imaglist.h>
#include <fctsys.h>
#include <fctsys.h>
#include <worksheet_shape_builder.h>
#include <worksheet_shape_builder.h>
#include <class_worksheet_dataitem.h>
#include <class_worksheet_dataitem.h>
...
...
pagelayout_editor/pl_editor_frame.cpp
View file @
9076bfc9
...
@@ -505,15 +505,14 @@ void PL_EDITOR_FRAME::RedrawActiveWindow( wxDC* aDC, bool aEraseBg )
...
@@ -505,15 +505,14 @@ void PL_EDITOR_FRAME::RedrawActiveWindow( wxDC* aDC, bool aEraseBg )
void
PL_EDITOR_FRAME
::
RebuildDesignTree
()
void
PL_EDITOR_FRAME
::
RebuildDesignTree
()
{
{
const
WORKSHEET_LAYOUT
&
pglayout
=
WORKSHEET_LAYOUT
::
GetTheInstance
();
const
WORKSHEET_LAYOUT
&
pglayout
=
WORKSHEET_LAYOUT
::
GetTheInstance
();
wxString
name
;
for
(
unsigned
ii
=
0
;
ii
<
pglayout
.
GetCount
();
ii
++
)
for
(
unsigned
ii
=
0
;
ii
<
pglayout
.
GetCount
();
ii
++
)
{
{
WORKSHEET_DATAITEM
*
item
=
pglayout
.
GetItem
(
ii
);
WORKSHEET_DATAITEM
*
item
=
pglayout
.
GetItem
(
ii
);
if
(
item
->
m_Name
.
IsEmpty
()
)
if
(
item
->
m_Name
.
IsEmpty
()
)
{
{
name
.
Printf
(
wxT
(
"item%d:%s"
),
ii
+
1
,
item
->
GetClassName
());
item
->
m_Name
=
wxString
::
Format
(
wxT
(
"item%d:%s"
),
ii
+
1
,
item
->
m_Name
=
name
;
GetChars
(
item
->
GetClassName
())
)
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment