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
27dba224
Commit
27dba224
authored
Apr 04, 2007
by
Thomas Zander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix removing of listStyle to use refcounting instead of bluntly deleting.
svn path=/trunk/koffice/; revision=650386
parent
87476d42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
libs/kotext/styles/KoParagraphStyle.cpp
libs/kotext/styles/KoParagraphStyle.cpp
+11
-7
No files found.
libs/kotext/styles/KoParagraphStyle.cpp
View file @
27dba224
...
...
@@ -40,12 +40,16 @@ public:
delete
stylesPrivate
;
stylesPrivate
=
0
;
charStyle
=
0
;
// QObject will delete it.
if
(
listStyle
)
{
listStyle
->
removeUser
();
if
(
listStyle
->
userCount
()
==
0
)
delete
listStyle
;
listStyle
=
0
;
}
removeListStyle
();
}
void
removeListStyle
()
{
if
(
listStyle
==
0
)
return
;
listStyle
->
removeUser
();
if
(
listStyle
->
userCount
()
==
0
)
delete
listStyle
;
listStyle
=
0
;
}
QString
name
;
...
...
@@ -249,7 +253,7 @@ void KoParagraphStyle::setListStyle(const KoListStyle &style) {
}
void
KoParagraphStyle
::
removeListStyle
()
{
d
elete
d
->
listStyle
;
d
->
listStyle
=
0
;
d
->
removeListStyle
()
;
}
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