Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Krita
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mathias Wein
Krita
Commits
7e872f8f
Commit
7e872f8f
authored
Apr 04, 2007
by
Thomas Zander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Different solution; this should work better with older compilers
svn path=/trunk/koffice/; revision=650510
parent
27dba224
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
libs/kotext/styles/KoParagraphStyle.cpp
libs/kotext/styles/KoParagraphStyle.cpp
+7
-11
No files found.
libs/kotext/styles/KoParagraphStyle.cpp
View file @
7e872f8f
...
...
@@ -40,16 +40,6 @@ public:
delete
stylesPrivate
;
stylesPrivate
=
0
;
charStyle
=
0
;
// QObject will delete it.
removeListStyle
();
}
void
removeListStyle
()
{
if
(
listStyle
==
0
)
return
;
listStyle
->
removeUser
();
if
(
listStyle
->
userCount
()
==
0
)
delete
listStyle
;
listStyle
=
0
;
}
QString
name
;
...
...
@@ -147,6 +137,7 @@ KoParagraphStyle::KoParagraphStyle(const KoParagraphStyle &orig)
}
KoParagraphStyle
::~
KoParagraphStyle
()
{
removeListStyle
();
delete
d
;
}
...
...
@@ -253,7 +244,12 @@ void KoParagraphStyle::setListStyle(const KoListStyle &style) {
}
void
KoParagraphStyle
::
removeListStyle
()
{
d
->
removeListStyle
();
if
(
d
->
listStyle
==
0
)
return
;
d
->
listStyle
->
removeUser
();
if
(
d
->
listStyle
->
userCount
()
==
0
)
delete
d
->
listStyle
;
d
->
listStyle
=
0
;
}
static
KoParagraphStyle
::
BorderStyle
oasisBorderStyle
(
const
QString
&
borderstyle
)
{
...
...
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