Skip to content

Commit

Permalink
Merge pull request #1 from Debian/patches-from-debian
Browse files Browse the repository at this point in the history
Patches from debian
  • Loading branch information
pipelka committed Jan 19, 2014
2 parents 3486b3e + 3b80de0 commit ea0a119
Show file tree
Hide file tree
Showing 13 changed files with 278 additions and 224 deletions.
1 change: 1 addition & 0 deletions configuration/aconfiguration-gconf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
*/

#include <gconfmm.h>
#include <cstdio>
#include <iostream>

namespace Aeskulap {
Expand Down
32 changes: 16 additions & 16 deletions imagepool/dicomdir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,21 +151,21 @@ namespace ImagePool {
DcmDataset study;
DcmElement *el;

if ( studyRec->findAndCopyElement(DCM_SpecificCharacterSet, el) == ECC_Normal )
if ( studyRec->findAndGetElement(DCM_SpecificCharacterSet, el, OFFalse, OFTrue) == ECC_Normal )
study.insert(el);
if ( studyRec->findAndCopyElement(DCM_StudyInstanceUID, el) == ECC_Normal )
if ( studyRec->findAndGetElement(DCM_StudyInstanceUID, el, OFFalse, OFTrue) == ECC_Normal )
study.insert(el);
if ( studyRec->findAndCopyElement(DCM_StudyDate, el) == ECC_Normal )
if ( studyRec->findAndGetElement(DCM_StudyDate, el, OFFalse, OFTrue) == ECC_Normal )
study.insert(el);
if ( studyRec->findAndCopyElement(DCM_StudyTime, el) == ECC_Normal )
if ( studyRec->findAndGetElement(DCM_StudyTime, el, OFFalse, OFTrue) == ECC_Normal )
study.insert(el);
if ( studyRec->findAndCopyElement(DCM_StudyDescription, el) == ECC_Normal )
if ( studyRec->findAndGetElement(DCM_StudyDescription, el, OFFalse, OFTrue) == ECC_Normal )
study.insert(el);
if ( patRec->findAndCopyElement(DCM_PatientsName, el) == ECC_Normal )
if ( patRec->findAndGetElement(DCM_PatientName, el, OFFalse, OFTrue) == ECC_Normal )
study.insert(el);
if ( patRec->findAndCopyElement(DCM_PatientsBirthDate, el) == ECC_Normal )
if ( patRec->findAndGetElement(DCM_PatientBirthDate, el, OFFalse, OFTrue) == ECC_Normal )
study.insert(el);
if ( patRec->findAndCopyElement(DCM_PatientsSex, el) == ECC_Normal )
if ( patRec->findAndGetElement(DCM_PatientSex, el, OFFalse, OFTrue) == ECC_Normal )
study.insert(el);
resultslot(create_query_study(&study, std::string("DICOMDIR:") + dicomdir));
}
Expand Down Expand Up @@ -221,21 +221,21 @@ namespace ImagePool {
DcmDataset series;
DcmElement *el;

if ( seriesRec->findAndCopyElement(DCM_SpecificCharacterSet, el) == ECC_Normal )
if ( seriesRec->findAndGetElement(DCM_SpecificCharacterSet, el, OFFalse, OFTrue) == ECC_Normal )
series.insert(el);
if ( seriesRec->findAndCopyElement(DCM_SeriesDescription, el) == ECC_Normal )
if ( seriesRec->findAndGetElement(DCM_SeriesDescription, el, OFFalse, OFTrue) == ECC_Normal )
series.insert(el);
if ( seriesRec->findAndCopyElement(DCM_SeriesInstanceUID, el) == ECC_Normal )
if ( seriesRec->findAndGetElement(DCM_SeriesInstanceUID, el, OFFalse, OFTrue) == ECC_Normal )
series.insert(el);
if ( seriesRec->findAndCopyElement(DCM_Modality, el) == ECC_Normal )
if ( seriesRec->findAndGetElement(DCM_Modality, el, OFFalse, OFTrue) == ECC_Normal )
series.insert(el);
if ( seriesRec->findAndCopyElement(DCM_SeriesDate, el) == ECC_Normal )
if ( seriesRec->findAndGetElement(DCM_SeriesDate, el, OFFalse, OFTrue) == ECC_Normal )
series.insert(el);
if ( seriesRec->findAndCopyElement(DCM_SeriesTime, el) == ECC_Normal )
if ( seriesRec->findAndGetElement(DCM_SeriesTime, el, OFFalse, OFTrue) == ECC_Normal )
series.insert(el);
if ( studyRec->findAndCopyElement(DCM_StudyDescription, el) == ECC_Normal )
if ( studyRec->findAndGetElement(DCM_StudyDescription, el, OFFalse, OFTrue) == ECC_Normal )
series.insert(el);
if ( studyRec->findAndCopyElement(DCM_StationName, el) == ECC_Normal )
if ( studyRec->findAndGetElement(DCM_StationName, el, OFFalse, OFTrue) == ECC_Normal )
series.insert(el);

// Count Related SOP Instances
Expand Down
2 changes: 1 addition & 1 deletion imagepool/netloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ bool NetLoader::run() {
e->putString("STUDY");
query.insert(e);

e = newDicomElement(DCM_PatientsName);
e = newDicomElement(DCM_PatientName);
query.insert(e);

e = newDicomElement(DCM_PatientID);
Expand Down
6 changes: 3 additions & 3 deletions imagepool/netquery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ void query_from_net(
e->putString(dicom_enc.c_str());
query.insert(e);

e = newDicomElement(DCM_PatientsName);
e = newDicomElement(DCM_PatientName);
e->putString(patientsname.c_str());
query.insert(e);

Expand All @@ -225,10 +225,10 @@ void query_from_net(
e->putString(modality.c_str());
query.insert(e);

e = newDicomElement(DCM_PatientsBirthDate);
e = newDicomElement(DCM_PatientBirthDate);
query.insert(e);

e = newDicomElement(DCM_PatientsSex);
e = newDicomElement(DCM_PatientSex);
query.insert(e);

e = newDicomElement(DCM_StudyDate);
Expand Down
4 changes: 1 addition & 3 deletions imagepool/poolassociation.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,7 @@ class Association

if(value != NULL) {
if (strlen(value) > 0) {
elem->putString(value);

if (elem->error() != EC_Normal) {
if( elem->putString(value) != EC_Normal) {
printf("cannot put tag value: (%04x,%04x)=\"%s\"", g, e, value);
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion imagepool/poolfindassociation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
Status: $State$
*/

#include "dcmtk/dcmdata/dcdebug.h"
//#include "dcmtk/dcmdata/dcdebug.h"
#include "poolfindassociation.h"


Expand Down
8 changes: 4 additions & 4 deletions imagepool/poolinstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ Glib::RefPtr<ImagePool::Instance> Instance::create(DcmDataset* dset) {
}

// set ManufacturersModelName
if(dset->findAndGetOFString(DCM_ManufacturersModelName, ofstr).good()) {
if(dset->findAndGetOFString(DCM_ManufacturerModelName, ofstr).good()) {
r->m_model = ofstr.c_str();
}

Expand Down Expand Up @@ -587,12 +587,12 @@ Glib::RefPtr<ImagePool::Instance> Instance::create(DcmDataset* dset) {
//std::cout << "intercept: " << r->m_intercept << std::endl;

// study params
if(dset->findAndGetOFString(DCM_PatientsName, ofstr).good()) {
if(dset->findAndGetOFString(DCM_PatientName, ofstr).good()) {
r->m_patientsname = r->convert_string(ofstr.c_str());
}
dset->findAndGetOFString(DCM_PatientsBirthDate, ofstr);
dset->findAndGetOFString(DCM_PatientBirthDate, ofstr);
r->m_patientsbirthdate = ofstr.c_str();
dset->findAndGetOFString(DCM_PatientsSex, ofstr);
dset->findAndGetOFString(DCM_PatientSex, ofstr);
r->m_patientssex = ofstr.c_str();
if(dset->findAndGetOFString(DCM_StudyDescription, ofstr).good()) {
r->m_studydescription = r->convert_string(ofstr.c_str());
Expand Down
1 change: 0 additions & 1 deletion imagepool/poolmoveassociation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include "dcmtk/dcmnet/dimse.h"
#include "dcmtk/dcmnet/diutil.h"
#include "dcmtk/dcmdata/dcfilefo.h"
#include "dcmtk/dcmdata/dcdebug.h"
#include "dcmtk/dcmdata/dcuid.h"
#include "dcmtk/dcmdata/dcdict.h"
#include "dcmtk/dcmdata/cmdlnarg.h"
Expand Down
2 changes: 1 addition & 1 deletion pixmaps/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
icondir = $(datadir)/icons/hicolor/48x48/apps
icondir = $(datadir)/icons/hicolor/64x64/apps
icon_DATA = aeskulap.png
svgicondir = $(datadir)/icons/hicolor/scalable/apps
svgicon_DATA = aeskulap.svg
Expand Down
Loading

0 comments on commit ea0a119

Please sign in to comment.