Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiaab
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed potential crash with frmContactEditorKey in Edit mode.
[xestiaab/.git]
/
source
/
contacteditor
/
frmContactEditorOrganisations.cpp
diff --git
a/source/contacteditor/frmContactEditorOrganisations.cpp
b/source/contacteditor/frmContactEditorOrganisations.cpp
index
b6c2e19
..
8763710
100644
(file)
--- a/
source/contacteditor/frmContactEditorOrganisations.cpp
+++ b/
source/contacteditor/frmContactEditorOrganisations.cpp
@@
-239,7
+239,8
@@
void frmContactEditorOrganisations::SetEditorMode(bool EditMode, SectionType Sec
striter = OrganisationListSortAsPtr->find(OrganisationListIndex);
striter = OrganisationListSortAsPtr->find(OrganisationListIndex);
- if (striter->first == OrganisationListIndex){
+ if (striter->first == OrganisationListIndex &&
+ striter != OrganisationListSortAsPtr->end()){
strValue = striter->second;
strValue = striter->second;
@@
-251,7
+252,8
@@
void frmContactEditorOrganisations::SetEditorMode(bool EditMode, SectionType Sec
intiter = OrganisationListPrefPtr->find(OrganisationListIndex);
intiter = OrganisationListPrefPtr->find(OrganisationListIndex);
- if (intiter->first == OrganisationListIndex && intiter->second > 0){
+ if (intiter->first == OrganisationListIndex && intiter->second > 0 &&
+ intiter != OrganisationListPrefPtr->end()){
sliPriority->SetValue(intiter->second);
sliPriority->Enable();
sliPriority->SetValue(intiter->second);
sliPriority->Enable();
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy