Commit 19249158 authored by claes's avatar claes

Bugfix in copyObject

parent ccea56e3
/*
* Proview $Id: wb_session.cpp,v 1.22 2007-09-19 15:14:55 claes Exp $
* Proview $Id: wb_session.cpp,v 1.23 2007-11-16 10:10:11 claes Exp $
* Copyright (C) 2005 SSAB Oxelösund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -155,6 +155,8 @@ wb_object wb_session::copyObject(wb_object o, wb_destination d, wb_name name)
if ( m_vrep->vid() == o.vid()) {
orep = m_vrep->copyObject(&m_sts, (wb_orep*)o, d, name);
if (evenSts()) throw wb_error(sts());
orep->ref();
}
else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment